Skip to content

GoReleaser Artifacts #10

GoReleaser Artifacts

GoReleaser Artifacts #10

Workflow file for this run

name: GoReleaser Artifacts
on:
workflow_run:
workflows:
- Release
types:
- completed
permissions:
contents: write
# packages: write
# issues: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
git fetch --force --tags
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag
- uses: actions/setup-go@v4
with:
go-version: stable
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: 1.19.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.AUTOMATION_USER_TOKEN }}