Increase default timeout for the --timeout
flag to 10 minutes.
#292
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: goreleaser | |
on: | |
pull_request: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest-8cpu | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Go Init | |
uses: ./.github/actions/go_init | |
- run: go run main.go --version | |
- name: Run GoReleaser (publish) | |
uses: goreleaser/goreleaser-action@v5 | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run GoReleaser (dry run) | |
uses: goreleaser/goreleaser-action@v5 | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
version: latest | |
args: release --clean --snapshot --skip-publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload assets | |
uses: actions/upload-artifact@v4 | |
# only upload artifacts on pull requests | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
name: test-release | |
path: dist/* |