chore:新建Github Actions自动打包发布

This commit is contained in:
Xu Tianliang 2022-02-23 17:43:00 +08:00
parent 78b9a06c07
commit bfcebe2c48
No known key found for this signature in database
GPG Key ID: 7FF3F70CD1C04346

26
.github/workflows/main.yml vendored Normal file
View File

@ -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"