diff --git a/.gitea/workflows/auto_build.yaml b/.gitea/workflows/auto_build.yaml index 653a23b..40dfbad 100644 --- a/.gitea/workflows/auto_build.yaml +++ b/.gitea/workflows/auto_build.yaml @@ -1,5 +1,8 @@ name: 自动打包 -on: [push] +on: + push: + branches: + - main permissions: contents: write @@ -8,6 +11,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: http://139.224.201.203:3000/cloudy2333/checkout@v4 - - run: npm install - - run: npm run build \ No newline at end of file + - name: 签出仓库 + uses: http://139.224.201.203:3000/cloudy2333/checkout@v4 + - name: 安装依赖 + run: npm install + - name: 打包 + run: npm run build + - name: 上传 + uses: http://139.224.201.203:3000/cloudy2333/upload-artifact@v4 + with: + name: ProxySubscribeHub + path: dist/ \ No newline at end of file