Skip to content

Commit

Permalink
fix: Update goreleaser workflow to fix warnings and artifact generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored and tingrui-AWS-EKS-auth committed Jun 28, 2024
1 parent 86e9c96 commit a4871fa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 38 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,41 @@
name: Create Release

on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
branches:
- 'release-*'
paths:
- version.txt

jobs:
goreleaser:
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: latest
args: release --rm-dist
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 0 additions & 29 deletions .github/workflows/tag-release.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,4 @@ release:
github:
owner: kubernetes-sigs
name: aws-iam-authenticator
draft: true
prerelease: false
name_template: "v{{.Version}}"

0 comments on commit a4871fa

Please sign in to comment.