-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (40 loc) · 1.16 KB
/
release-java-provider.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on:
push:
tags:
- v*.*.*
paths-ignore:
- "CHANGELOG.md"
- "CHANGELOG_PENDING.md"
- "README.md"
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
release-pulumi-language-java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch Tags
run: |
git fetch --quiet --prune --unshallow --tags
- name: Set up Go 1.19.x
uses: actions/setup-go@v4
with:
go-version: stable
- name: Configure Go cache
id: go-cache-paths
run: |
echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
- name: Set up Go cache
uses: actions/cache@v3
id: go-cache
with:
path: |
${{ steps.go-cache-paths.outputs.go-build }}
${{ steps.go-cache-paths.outputs.go-mod }}
key: go-cache-${{ hashFiles('**/go.sum') }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: -p 3 -f .goreleaser.yml --clean --release-notes=CHANGELOG_PENDING.md