Skip to content

Commit

Permalink
chore: enhance GitHub Actions workflow for GoReleaser with separate j…
Browse files Browse the repository at this point in the history
…obs for Linux and macOS
  • Loading branch information
ryan-gang committed Dec 17, 2024
1 parent c891359 commit 928cf5e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
contents: write

jobs:
publish_tester:
publish_tester_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -24,6 +24,25 @@ jobs:
uses: goreleaser/goreleaser-action@v5
with:
version: v1.22.1
args: release -f main.goreleaser.yml --rm-dist
args: release -f mainLinux.goreleaser.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish_tester_macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.22.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: v1.22.1
args: release -f mainDarwin.goreleaser.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 928cf5e

Please sign in to comment.