Skip to content

Add checkpoint key ID as output for create-tink-keyset (#1661) #164

Add checkpoint key ID as output for create-tink-keyset (#1661)

Add checkpoint key ID as output for create-tink-keyset (#1661) #164

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

(Line: 10, Col: 3): A sequence was not expected
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
release:
- name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: write
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: on
COSIGN_EXPERIMENTAL: "true"
steps:
- name: Check out code onto GOPATH
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
path: ./src/github.com/${{ github.repository }}
persist-credentials: false
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: ./src/github.com/${{ github.repository }}/go.mod
check-latest: true
- name: Install ko
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
- name: Install cosign
uses: sigstore/cosign-installer@fb28c2b6339dcd94da6e4cbcbc5e888961f6f8c3 # v3.9.0
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
with:
install-only: true
- name: Log into ghcr.io
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get TAG
id: get_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Run goreleaser
working-directory: ./src/github.com/${{ github.repository }}
run: goreleaser release --clean --timeout 120m
env:
GIT_TAG: ${{ steps.get_tag.outputs.TAG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}