File tree Expand file tree Collapse file tree 4 files changed +107
-0
lines changed Expand file tree Collapse file tree 4 files changed +107
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ goreleaser :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v3
14
+ with :
15
+ fetch-depth : 0
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v3
18
+ with :
19
+ go-version : 1.19
20
+ - name : Docker Login
21
+ uses : docker/login-action@v2
22
+ with :
23
+ registry : ghcr.io
24
+ username : ${{ github.repository_owner }}
25
+ password : ${{ secrets.GITHUB_TOKEN }}
26
+ - name : Run GoReleaser
27
+ uses :
goreleaser/[email protected]
28
+ with :
29
+ version : latest
30
+ args : release --rm-dist
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Create Tag
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' Release tag'
8
+ required : true
9
+
10
+ jobs :
11
+ tag :
12
+ name : Create tag
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ with :
17
+ token : ${{ secrets.TAG_PSAT }}
18
+ fetch-depth : 0
19
+ - name : ' Get previous tag'
20
+ id : previoustag
21
+ uses :
" WyriHaximus/[email protected] "
22
+ env :
23
+ GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
24
+ - name : ' Get possible next tags'
25
+ id : semvers
26
+ uses :
" WyriHaximus/[email protected] "
27
+ with :
28
+ version : ${{ steps.previoustag.outputs.tag }}
29
+ - name : ' Verify input version'
30
+ if : github.event.inputs.version != steps.semvers.outputs.v_major && github.event.inputs.version != steps.semvers.outputs.v_minor && github.event.inputs.version != steps.semvers.outputs.v_patch
31
+ run : exit 1
32
+ - name : ' Update version file'
33
+ run : echo ${{ github.event.inputs.version }} >VERSION
34
+ - name : ' Commit and tag'
35
+ uses : EndBug/add-and-commit@v9
36
+ with :
37
+ default_author : github_actions
38
+ message : Update version number
39
+ add : ' VERSION'
40
+ tag : ${{ github.event.inputs.version }}
Original file line number Diff line number Diff line change
1
+ # Binaries for programs and plugins
2
+ * .exe
3
+ * .exe~
4
+ * .dll
5
+ * .so *
6
+ * .dylib
7
+ bin
8
+
9
+ # Test binary, build with `go test -c`
10
+ * .test
11
+
12
+ # Output of the go coverage tool, specifically when used with LiteIDE
13
+ * .out
14
+
15
+ .DS_Store
16
+
17
+ # editor and IDE paraphernalia
18
+ .idea
19
+ * .swp
20
+ * .swo
21
+ * ~
22
+ .vscode
23
+ .history
24
+ .netrc
25
+
26
+ .log
27
+
28
+ .vscode /*
29
+ ! .vscode /settings.json
30
+ ! .vscode /tasks.json
31
+ ! .vscode /launch.json
32
+ ! .vscode /extensions.json
33
+ .history
34
+
Original file line number Diff line number Diff line change
1
+ v0.0.0
You can’t perform that action at this time.
0 commit comments