1
0
mirror of https://github.com/FloatTech/zbpdata.git synced 2026-02-02 13:28:56 +09:00

add auto-updater

This commit is contained in:
fumiama
2021-12-25 20:15:28 +08:00
parent 2783f59b7e
commit 61349e6e05
2 changed files with 80 additions and 0 deletions

28
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: 更新 md5
on:
push:
tags:
- 'v*'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Run Updater
env:
REILIA_SPS: ${{ secrets.REILIA_SPS }}
run: |
ls
go mod init updater
go mod tidy
go run main.go