no publish #7
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: Release | |
on: | |
push: | |
tags: | |
- "v*" | |
env: | |
GO_VERSION: '1.22' | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.6 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
cache: false # Disable cache to avoid free space issues during `Post Setup Go` step. | |
# Create tmp dir for GoReleaser | |
- name: "create tmp dir" | |
run: | | |
mkdir tmp | |
- name: GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
version: v2.1.0 | |
args: release -f=goreleaser.yml --skip=publish --clean --timeout 90m | |
env: | |
GITHUB_TOKEN: ${{ secrets.ORG_REPO_TOKEN }} | |
TMPDIR: "tmp" | |
- name: Upload assets | |
uses: actions/upload-artifact@v4 | |
with: | |
name: trivy | |
path: dist/* | |