-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] rebuild .goreleaser.yml from scratch to meet new version (goreleaser init) - copy over pieces we need from old config - verified good with `goreleaser check` - [x] change goreleaser github action to fire on newly published releases, not new tags Our new release github action will create the release and do all the templating based on conventional commits pr titles and auto-labelling. Now goreleaser will see the newly published release and attach the new asset builds to the new release. Signed-off-by: jmeridth <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
name: goreleaser | ||
|
||
--- | ||
name: "Goreleaser" | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
permissions: | ||
contents: write | ||
|
||
release: | ||
types: [published] | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
## After having trouble with the PUBLISHER_TOKEN, I started down this path... | ||
## But I never got the APP_ID to be accepted by the action | ||
## Error: [@octokit/auth-app] appId option must be a number or numeric string | ||
# - name: Generate token | ||
# id: generate_token | ||
# uses: tibdex/github-app-token@v1 | ||
# with: | ||
# app_id: ${{ secrets.APP_ID }} | ||
# private_key: ${{ secrets.APP_PEM }} | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Fetch all tags | ||
run: git fetch --force --tags | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
|
@@ -36,7 +22,7 @@ jobs: | |
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
version: "~> v2" | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters