2022-02-23 17:43:00 +08:00
|
|
|
|
# 根据上传的tag,打包发布至Github
|
|
|
|
|
|
|
|
|
|
name: Auto Release
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
tags:
|
|
|
|
|
- '*'
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
jobs:
|
2022-02-23 19:46:15 +08:00
|
|
|
|
publish-module:
|
2022-02-23 17:43:00 +08:00
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: 1.检出代码
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
2022-02-23 19:46:15 +08:00
|
|
|
|
- name: 2.下载打包脚本并执行
|
|
|
|
|
run: curl https://yatsuki.github.io/v2ray-release/release.sh | sh
|
2022-02-23 17:43:00 +08:00
|
|
|
|
|
2022-02-23 19:46:15 +08:00
|
|
|
|
- name: 3.发布
|
2022-02-23 17:43:00 +08:00
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
|
with:
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
body: "自动发布"
|
2022-02-23 19:46:15 +08:00
|
|
|
|
artifacts: "v2ray-magisk-android32.zip,v2ray-magisk-android64.zip"
|