Skip to content

Commit

Permalink
ci(release): download PGO (artifact) and fallback
Browse files Browse the repository at this point in the history
copy from PGO branch

Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Mar 23, 2024
1 parent 242f967 commit 4491c94
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,25 @@ jobs:
container:
image: ghcr.io/goreleaser/goreleaser-cross:latest
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v4
id: artifact
with:
name: pgo

- uses: actions/checkout@v3
if: steps.artifact.outcome != 'success'
with:
ref: pgo

- run: cp ${{ env.PGO_FILE }} /tmp
if: steps.artifact.outcome != 'success'

- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
ref: "${{ inputs.tag || github.ref_name }}"

- run: cp /tmp/${{ env.PGO_FILE }} .
if: steps.artifact.outcome != 'success'

- uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit 4491c94

Please sign in to comment.