From 83aaf520c1c43361fc13281d2f03043ac973a251 Mon Sep 17 00:00:00 2001 From: cdryzun Date: Mon, 31 Jul 2023 20:31:39 +0800 Subject: [PATCH] Add: github release workflow. --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d5d10c1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Release +on: + push: + tags: + - v* + +jobs: + release: + runs-on: [ubuntu-latest] + steps: + - uses: actions/setup-go@v3 + with: { go-version: 1.20 } + - run: go install github.com/go-task/task/v3/cmd/task@latest + - run: apt update && apt-get install zip + - uses: actions/checkout@v3 + - run: task deps + - run: git reset --hard + - run: GITHUB_TOKEN=${{ secrets.GH_TOKEN }} task release:prod \ No newline at end of file