From bfcebe2c486fd3713adacadb32198d0fb3eb1275 Mon Sep 17 00:00:00 2001 From: Xu Tianliang Date: Wed, 23 Feb 2022 17:43:00 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E6=96=B0=E5=BB=BAGithub=20Actions?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=89=93=E5=8C=85=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a13db5c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +# 根据上传的tag,打包发布至Github + +name: Auto Release + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + publish-release-apk: + runs-on: ubuntu-latest + steps: + - name: 1.检出代码 + uses: actions/checkout@v2 + + - name: 2.打包文件 + run: zip -q -r v2ray-magisk-android64.zip META-INF v2ray customize.sh README.md service.sh uninstall.sh module.prop + + - name: 3.发布至Github-Release + uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + body: "自动发布" + artifacts: "v2ray-magisk-android64.zip"