File tree Expand file tree Collapse file tree 6 files changed +42
-176
lines changed Expand file tree Collapse file tree 6 files changed +42
-176
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # This GitHub action publish assets for release when a tag is created.
2
- name : release
1
+ name : Release
3
2
on :
4
- push :
5
- tags :
6
- - " *"
3
+ release :
4
+ types : [published]
7
5
8
- workflow_dispatch :
6
+ permissions : {}
9
7
10
- jobs :
11
- goreleaser :
12
- runs-on : ubuntu-latest
13
- steps :
14
- - name : Checkout
15
- uses : actions/checkout@v4
16
-
17
- - name : Unshallow
18
- run : git fetch --prune --unshallow
19
-
20
- - name : Set up Go
21
- uses : actions/setup-go@v5
22
- with :
23
- go-version : " 1.21"
8
+ concurrency :
9
+ group : ${{ github.workflow }}
10
+ cancel-in-progress : false
24
11
25
- - name : Import GPG key
26
- id : import_gpg
27
- uses : crazy-max/ghaction-import-gpg@v6
28
- with :
29
- gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
30
- passphrase : ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
31
-
32
- - name : Run GoReleaser
33
- uses : goreleaser/goreleaser-action@v3
34
- with :
35
- version : latest
36
- args : release --parallelism 2 --rm-dist
37
- env :
38
- GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
39
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12
+ jobs :
13
+ perform :
14
+ uses : cloudposse/.github/.github/workflows/shared-release-branches.yml@main
15
+ secrets : inherit
Original file line number Diff line number Diff line change 4
4
types : [opened, synchronize, reopened]
5
5
paths-ignore :
6
6
- " README.md"
7
- release :
8
- types : [created]
7
+ push :
8
+ branches :
9
+ - main
10
+ - release/v*
9
11
paths-ignore :
10
- - " README.md"
12
+ - ' .github/**'
13
+ - ' docs/**'
14
+ - ' examples/**'
15
+ - ' test/**'
16
+
17
+ concurrency :
18
+ group : ${{ github.workflow }}-${{ github.ref }}
19
+ cancel-in-progress : false
11
20
12
21
jobs :
13
22
# ensure the code builds...
@@ -16,15 +25,15 @@ jobs:
16
25
runs-on : ubuntu-latest
17
26
timeout-minutes : 5
18
27
steps :
28
+ - name : Check out code into the Go module directory
29
+ uses : actions/checkout@v4
30
+
19
31
- name : Set up Go
20
- uses : actions/setup-go@v3.3.0
32
+ uses : actions/setup-go@v5
21
33
with :
22
- go-version : " 1.21 "
34
+ go-version-file : go.mod
23
35
id : go
24
36
25
- - name : Check out code into the Go module directory
26
- uses : actions/checkout@v3.1.0
27
-
28
37
- name : Get dependencies
29
38
run : |
30
39
go mod download
@@ -50,15 +59,15 @@ jobs:
50
59
- " 1.5.7"
51
60
- " 1.6.3"
52
61
steps :
62
+ - name : Check out code into the Go module directory
63
+ uses : actions/checkout@v4
64
+
53
65
- name : Set up Go
54
- uses : actions/setup-go@v3.3.0
66
+ uses : actions/setup-go@v5
55
67
with :
56
- go-version : " 1.21 "
68
+ go-version-file : go.mod
57
69
id : go
58
70
59
- - name : Check out code into the Go module directory
60
- uses : actions/checkout@v3.1.0
61
-
62
71
- name : Get dependencies
63
72
run : |
64
73
make deps
70
79
TF_ACC_TERRAFORM_VERSION : ${{ matrix.terraform }}
71
80
run : |
72
81
make testacc
82
+
83
+ release :
84
+ needs : test
85
+ if : github.event_name == 'push'
86
+ uses : cloudposse/.github/.github/workflows/shared-go-auto-release.yml@main
87
+ with :
88
+ publish : true
89
+ secrets : inherit
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- name : " Checkout source code at current commit"
12
- uses : actions/checkout@v2
12
+ uses : actions/checkout@v4
13
13
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved
14
14
- uses : mszostok/codeowners-validator@v0.7.1
15
15
if : github.event.pull_request.head.repo.full_name == github.repository
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments