Skip to content

Commit

Permalink
Merge pull request #279 from mrpalide/fix/darwin-windows-release
Browse files Browse the repository at this point in the history
fix darwin and windows release
  • Loading branch information
mrpalide authored Aug 25, 2024
2 parents 665bee2 + 5064a1c commit 581cc74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Requirements
run: |
sudo apt update
Expand All @@ -26,10 +26,10 @@ jobs:
needs: linux
runs-on: macos-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Requirements
run: |
brew install goreleaser
Expand All @@ -44,14 +44,14 @@ jobs:
needs: darwin
runs-on: windows-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Requirements
shell: pwsh
run: |
Invoke-WebRequest "https://github.com/goreleaser/goreleaser/releases/download/v1.8.3/goreleaser_Windows_x86_64.zip" -OutFile goreleaser.zip
Invoke-WebRequest "https://github.com/goreleaser/goreleaser/releases/download/v2.0.1/goreleaser_Windows_x86_64.zip" -OutFile goreleaser.zip
Expand-Archive goreleaser.zip
choco install make
- name: Releasing
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ github-release: github-prepare-release
goreleaser --clean --config .goreleaser-linux.yml --release-notes releaseChangelog.md

github-release-darwin:
goreleaser --clean --config .goreleaser-darwin.yml --skip-publish
goreleaser --clean --config .goreleaser-darwin.yml --skip=publish
$(eval GITHUB_TAG=$(shell git describe --abbrev=0 --tags))
gh release upload --repo skycoin/dmsg ${GITHUB_TAG} ./dist/dmsg-${GITHUB_TAG}-darwin-amd64.tar.gz
gh release upload --repo skycoin/dmsg ${GITHUB_TAG} ./dist/dmsg-${GITHUB_TAG}-darwin-arm64.tar.gz
Expand All @@ -132,7 +132,7 @@ github-release-darwin:
gh release upload --repo skycoin/dmsg ${GITHUB_TAG} --clobber ./checksums.txt

github-release-windows:
.\goreleaser\goreleaser.exe --rm-dist --config .goreleaser-windows.yml --skip-publish
.\goreleaser\goreleaser.exe --rm-dist --config .goreleaser-windows.yml --skip=publish
$(eval GITHUB_TAG=$(shell powershell git describe --abbrev=0 --tags))
gh release upload --repo skycoin/dmsg ${GITHUB_TAG} ./dist/dmsg-${GITHUB_TAG}-windows-amd64.zip
gh release upload --repo skycoin/dmsg ${GITHUB_TAG} ./dist/dmsg-${GITHUB_TAG}-windows-386.zip
Expand Down

0 comments on commit 581cc74

Please sign in to comment.