Release #5
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: | |
workflow_dispatch: | |
inputs: | |
versionBumpType: | |
description: 'Version Bump Type' | |
required: true | |
default: 'patch' | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
build-targets: | |
name: build-targets | |
runs-on: ubuntu-22.04 | |
env: | |
GOPRIVATE: github.com/opentdf/platform/* | |
BIN_NAME: otdfctl | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
cache: false | |
- name: Get next version | |
uses: reecetech/[email protected] | |
id: version | |
with: | |
release_branch: main | |
scheme: semver | |
increment: ${{ github.event.inputs.versionBumpType }} | |
pep440: false | |
- name: print-version | |
run: echo Incrementing Version ${{ steps.version.outputs.current-v-version }} -> ${{ steps.version.outputs.v-version }} | |
- name: make-targets | |
env: | |
SEM_VER: ${{ steps.version.outputs.v-version }} | |
run: make build | |
- name: smoke-test | |
run: go test ./... -short -race -cover | |
- name: Compress the builds and generate checksums | |
env: | |
SEM_VER: ${{ steps.version.outputs.v-version }} | |
run: make zip-builds | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: './output/**/*' | |
body: 'This is a test release, and will be removed' | |
tag_name: ${{ steps.version.outputs.v-version }} | |
repository: opentdf/otdfctl | |
generate_release_notes: true |