Move v1 client and structs to its own package. (#51) #5
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
# Copyright 2024 Stacklok, Inc. | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # needed to write releases | |
steps: | |
- name: Set tag name | |
shell: bash | |
run: | | |
echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v3 | |
with: | |
go-version: '1.22' | |
check-latest: true | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 1 | |
- name: Install bom | |
uses: kubernetes-sigs/release-actions/setup-bom@a69972745f85aab4ba5d6c681e2a0e7f73eaff2b # v0.3.0 | |
- name: Generate SBOM | |
shell: bash | |
run: | | |
bom generate --format=json -o /tmp/trusty-sdk-go-$TAG.spdx.json . | |
- name: Publish Release | |
uses: kubernetes-sigs/release-actions/publish-release@a69972745f85aab4ba5d6c681e2a0e7f73eaff2b # v0.3.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
assets: "/tmp/trusty-sdk-go-$TAG.spdx.json" | |
sbom: false |