Skip to content

Commit 6f25cd0

Browse files
authored
Go auto release workflows (#17)
* Update workflows to go-auto-release * Update workflows to go-auto-release * Update workflows to go-auto-release * Update workflows to go-auto-release
1 parent 0f61c3f commit 6f25cd0

File tree

6 files changed

+35
-182
lines changed

6 files changed

+35
-182
lines changed

.github/auto-release.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/auto-release.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/build-assets.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
permissions: {}
7+
8+
concurrency:
9+
group: ${{ github.workflow }}
10+
cancel-in-progress: false
11+
12+
jobs:
13+
perform:
14+
uses: cloudposse/.github/.github/workflows/shared-release-branches.yml@main
15+
secrets: inherit

.github/workflows/test.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@ on:
88
paths-ignore:
99
- "README.md"
1010
push:
11+
branches:
12+
- main
13+
- release/v*
1114
paths-ignore:
12-
- "README.md"
15+
- '.github/**'
16+
- 'docs/**'
17+
- 'examples/**'
18+
- 'test/**'
1319

1420
# Testing only needs permissions to read the repository contents.
1521
permissions:
1622
contents: read
1723

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: false
27+
1828
jobs:
1929
# Ensure project builds before running testing matrix
2030
build:
@@ -33,6 +43,7 @@ jobs:
3343
uses: golangci/golangci-lint-action@v4
3444
with:
3545
version: latest
46+
skip-pkg-cache: true
3647

3748
generate:
3849
runs-on: ubuntu-latest
@@ -82,3 +93,11 @@ jobs:
8293
TF_ACC: "1"
8394
run: go test -v -cover ./internal/provider/
8495
timeout-minutes: 10
96+
97+
release:
98+
needs: test
99+
if: github.event_name == 'push'
100+
uses: cloudposse/.github/.github/workflows/shared-go-auto-release.yml@main
101+
with:
102+
publish: true
103+
secrets: inherit

.goreleaser.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)