We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e02bf5 commit fce91e1Copy full SHA for fce91e1
.github/tag.sh
@@ -0,0 +1,4 @@
1
+#!/bin/bash
2
+next_version=v0.0."$(git tag --sort=-v:refname | head -n 1 | sed 's|.*\.||' | awk '{print $1 + 1}')"
3
+git tag $next_version
4
+gh release create $next_version
.github/workflows/go.yml
@@ -9,6 +9,9 @@ on:
9
pull_request:
10
branches: [ "main" ]
11
12
+permissions:
13
+ contents: write
14
+
15
jobs:
16
17
build:
@@ -26,3 +29,15 @@ jobs:
26
29
27
30
- name: Test
28
31
run: go test -v ./test/...
32
33
+ tag:
34
+ runs-on: ubnutu-latest
35
+ needs: [build]
36
+ steps:
37
+ - name: Checkout code
38
+ uses: actions/checkout@v3
39
40
+ - name: Add tag & Release
41
+ env:
42
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
+ run: bash .github/tag.sh
0 commit comments