diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70274f6..afd6799 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,18 +7,22 @@ on: jobs: build: - name: Build and Release runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '^1.20' # Make sure this matches the Go version you're using locally + go-version: '1.21.4' # Ensure this matches your local Go version + + - name: Download Go modules + run: go mod download + - name: Build binaries for all platforms run: | GOOS=windows GOARCH=amd64 go build -o jsonviz-windows-amd64.exe GOOS=linux GOARCH=amd64 go build -o jsonviz-linux-amd64 GOOS=darwin GOARCH=amd64 go build -o jsonviz-darwin-amd64 + - name: Upload releases uses: softprops/action-gh-release@v1 with: @@ -27,4 +31,4 @@ jobs: jsonviz-linux-amd64 jsonviz-darwin-amd64 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.R_TOKEN }}