summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorKurenai <[email protected]>2021-10-19 12:16:43 +0800
committerKurenai <[email protected]>2021-10-19 12:17:33 +0800
commitbcbfb790858ce9f6afcc3eeaa4f66cfd9dc7f9e7 (patch)
tree99af0b0ca0a0ee2b9918ab71997c453b5a3f8779 /.github/workflows
parent56f71cc23567002c1cba030df73827c96c1b8bbd (diff)
Add workflow release config
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..1e89ee8
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,26 @@
+name: Release
+on:
+ create:
+ tags:
+ - v*
+ workflow_dispatch:
+
+jobs:
+ release:
+ name: Release on GitHub
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v1
+
+ - name: Validates GO releaser config
+ uses: docker://goreleaser/goreleaser:latest
+ with:
+ args: check
+
+ - name: Create release on GitHub
+ uses: docker://goreleaser/goreleaser:latest
+ with:
+ args: release
+ env:
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file