Skip to content

Commit

Permalink
ci(.github/workflows): consolidate release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhartstonge committed Dec 22, 2024
1 parent b67b3b1 commit acd9d01
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/goreleaser.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,33 @@ permissions:
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@v4
id: release-please
with:
token: ${{secrets.GITHUB_TOKEN}}

goreleaser:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit acd9d01

Please # to comment.