1
0
mirror of https://github.com/FloatTech/zbpdata.git synced 2025-01-19 04:26:18 +09:00
zbpdata/.github/workflows/release.yml

35 lines
678 B
YAML
Raw Normal View History

2021-12-25 20:15:28 +08:00
name: 更新 md5
on:
push:
tags:
- 'v*'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
2023-03-25 14:21:06 +08:00
submodules: 'true'
2021-12-25 20:15:28 +08:00
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
2023-02-27 13:59:20 +08:00
go-version: '1.20'
2021-12-25 20:15:28 +08:00
- name: Run Updater
env:
REILIA_SPS: ${{ secrets.REILIA_SPS }}
run: |
2023-03-25 14:27:54 +08:00
echo "ls ./"
2021-12-25 20:15:28 +08:00
ls
2023-03-25 17:23:17 +08:00
rm -rf Wife/*.go Wife/*.md Wife/.git
2023-03-25 14:27:54 +08:00
echo "ls Wife/"
2023-03-25 14:21:06 +08:00
ls Wife/
2021-12-25 20:15:28 +08:00
go mod init updater
2022-03-27 14:00:12 +08:00
sed -i '1,3d' main.go
2021-12-25 20:15:28 +08:00
go mod tidy
go run main.go