add v0.5.1 to changelog #2
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*' ] | |
permissions: | |
contents: read | |
jobs: | |
release-flamingo-cli: | |
outputs: | |
hashes: ${{ steps.slsa.outputs.hashes }} | |
image_url: ${{ steps.slsa.outputs.image_url }} | |
image_digest: ${{ steps.slsa.outputs.image_digest }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # needed to write releases | |
id-token: write # needed for keyless signing | |
packages: write # needed for ghcr access | |
steps: | |
- name: Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
- name: Unshallow | |
run: git fetch --prune --unshallow | |
- name: Setup Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: 1.20.x | |
cache: false | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0 | |
- name: Setup Syft | |
uses: anchore/sbom-action/download-syft@78fc58e266e87a38d4194b2137a3d4e9bcaf7ca1 # v0.14.3 | |
- name: Setup Cosign | |
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3.1.1 | |
- name: Generate release manifests | |
run: | | |
mkdir -p output | |
echo '[CHANGELOG](https://github.com/flux-subsystem-argo/flamingo/blob/main/CHANGELOG.md)' > output/notes.md | |
- name: Get server version | |
id: get-server-version | |
run: | | |
echo "::set-output name=server-version::$(cat SERVER_VERSION)" | |
- name: Run GoReleaser | |
id: run-goreleaser | |
uses: goreleaser/goreleaser-action@3fa32b8bb5620a2c1afe798654bbad59f9da4906 # v4.4.0 | |
with: | |
version: latest | |
args: release --release-notes=output/notes.md --skip-validate | |
env: | |
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | |
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | |
SERVER_VERSION: ${{ steps.get-server-version.outputs.server-version }} |