mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-12 00:08:50 +08:00
31 lines
757 B
YAML
31 lines
757 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
|
|
- run: npm install
|
|
- run: npm run build
|
|
|
|
- name: Generate Contributors Images
|
|
uses: jaywcjlove/github-action-contributors@main
|
|
with:
|
|
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
|
|
output: build/CONTRIBUTORS.svg
|
|
avatarSize: 42
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
commit_message: ${{ github.event.head_commit.message }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./build |