Skip to content

Commit

Permalink
chore: update release to use reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Sep 15, 2024
1 parent b5c2885 commit 09cd9ef
Showing 1 changed file with 4 additions and 29 deletions.
33 changes: 4 additions & 29 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release-please
name: Call Reusable Golang Release-Please Workflow

on:
push:
Expand All @@ -7,31 +7,6 @@ on:

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
release-type: go

release:
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.release_created
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: Jmainguy/workflows/.github/workflows/golang-release.yml@testing
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 09cd9ef

Please sign in to comment.