-
Notifications
You must be signed in to change notification settings - Fork 423
42 lines (35 loc) · 998 Bytes
/
create-release.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
# Github Action to create a release with goreleaser
name: Create Release
on:
push:
branches:
- 'release-*'
paths:
- version.txt
jobs:
release:
if: ${{ github.repository == 'kubernetes-sigs/aws-iam-authenticator' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: "${{ secrets.RELEASE_KEY }}"
- name: Tag release
run: |
/usr/bin/git config --global user.email [email protected]
/usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
hack/tag-release.sh
- name: Set up Go
uses: actions/setup-go@v5
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}