1
0
mirror of https://github.com/FloatTech/zbpdata.git synced 2024-09-30 01:46:27 +09:00
zbpdata/.github/workflows/release.yml
2023-03-25 14:27:54 +08:00

37 lines
754 B
YAML

name: 更新 md5
on:
push:
tags:
- 'v*'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
submodules: 'true'
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Run Updater
env:
REILIA_SPS: ${{ secrets.REILIA_SPS }}
run: |
echo "ls ./"
ls
rm Wife/go.* Wife/*.go Wife/*.md
mv Wife/wives/*.{jpg,png} Wife/
rm -rf Wife/wives Wife/.git
echo "ls Wife/"
ls Wife/
go mod init updater
sed -i '1,3d' main.go
go mod tidy
go run main.go