cache/.gitea/workflows/build.yaml

34 lines
645 B
YAML

name: 自动编译
on:
push:
paths:
- "config.js"
- "restore.js"
- "save.js"
- ".gitea/workflows/build.yaml"
jobs:
job1:
name: 编译发布
runs-on: linux
steps:
- name: 下载源码
uses: actions/checkout@v3
- name: 编译
run: |
npm config set registry https://registry.npmmirror.com
npm install
npm run build
- name: 提交更改
run: |
git config --global user.email "qxa@qwit.top"
git config --global user.name "qxa"
git add .
git commit -a -m "自动编译"
git push