Skip to content

Commit

Permalink
cd: fix mac os publish workflow
Browse files Browse the repository at this point in the history
Use the exact version of the 'goreleaser' package.
  • Loading branch information
psergee committed Jun 5, 2024
1 parent 96272b6 commit 9604bfa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ jobs:
echo "CGO_LDFLAGS=-L${GITHUB_WORKSPACE}/openssl/lib" >> $GITHUB_ENV
echo "CGO_CFLAGS=-I${GITHUB_WORKSPACE}/openssl/include" >> $GITHUB_ENV
- name: Setup GoReleaser
run: |
brew install goreleaser
- name: Set GoReleaser flags
id: set-goreleaser-flags
run: |
Expand All @@ -165,8 +161,10 @@ jobs:
- name: Build packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
goreleaser release ${{ steps.set-goreleaser-flags.outputs.GORELEASER_FLAGS }} --skip-publish --config ./goreleaser/.goreleaser_macOS.yml
uses: goreleaser/goreleaser-action@v2
with:
version: v1.26.2
args: release ${{ steps.set-goreleaser-flags.outputs.GORELEASER_FLAGS }} --skip-publish --config ./goreleaser/.goreleaser_macOS.yml

- name: Upload packages artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -248,6 +246,7 @@ jobs:
- name: Release
uses: goreleaser/goreleaser-action@v2
with:
version: v1.26.2
args: release ${{ steps.set-goreleaser-flags.outputs.GORELEASER_FLAGS }} --config ./goreleaser/.goreleaser_publish.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9604bfa

Please sign in to comment.