Skip to content

feat: option to retry on error #7

feat: option to retry on error

feat: option to retry on error #7

Workflow file for this run

name: release
on:
push:
branches: [ release ]
jobs:
go-release:
name: Go release
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: '.*'
- name: Checkout
uses: actions/checkout@v3
with:
ref: refs/tags/${{ steps.tag_version.outputs.new_tag }}
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
cache: true
cache-dependency-path: '**/go.sum'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}