Skip to content

Commit

Permalink
Troubleshoot Github Actions for goreleaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogappa committed Jun 23, 2024
1 parent 23c036b commit c841ab7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18' # Use the desired Go version
go-version: '1.22.3'

- name: Install GoReleaser
run: |
Expand All @@ -36,11 +36,13 @@ jobs:
echo "next_version=${next_version}" >> $GITHUB_ENV
- name: Create tag
env:
PAT: ${{ secrets.PAT }}
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git tag ${{ env.next_version }}
git push origin ${{ env.next_version }}
git push https://github-actions:${{ secrets.PAT }}@github.com/marianogappa/truco.git ${{ env.next_version }}
- name: Run GoReleaser
run: goreleaser release --rm-dist
Expand Down

0 comments on commit c841ab7

Please sign in to comment.