diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bce17b2..db99c6e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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 diff --git a/Makefile b/Makefile index 7a7b754c..0fce8d3c 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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