Merge pull request #83 from hashicorp/b/fix-null-functions #23
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[0-9]+.[0-9]+.[0-9]+*' | |
permissions: | |
contents: write | |
jobs: | |
go-version: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.go-version.outputs.version }} | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- id: go-version | |
run: echo "version=$(cat ./.go-version)" >> "$GITHUB_OUTPUT" | |
release-notes: | |
runs-on: ubuntu-latest | |
env: | |
RELEASE_VERSION: ${{ github.ref_name }} | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Generate Release Notes | |
run: awk -v ver=${RELEASE_VERSION} '/^## / { if (p) { exit }; if ($2 == ver) { p=1; next } } p' CHANGELOG.md > release-notes.txt | |
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | |
with: | |
name: release-notes | |
path: release-notes.txt | |
retention-days: 1 | |
terraform-provider-release: | |
name: 'Terraform Provider Release' | |
needs: [go-version, release-notes] | |
uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/hashicorp.yml@v5 | |
secrets: | |
hc-releases-github-token: '${{ secrets.HASHI_RELEASES_GITHUB_TOKEN }}' | |
hc-releases-host-prod: '${{ secrets.HC_RELEASES_HOST_PROD }}' | |
hc-releases-host-staging: '${{ secrets.HC_RELEASES_HOST_STAGING }}' | |
hc-releases-key-prod: '${{ secrets.HC_RELEASES_KEY_PROD }}' | |
hc-releases-key-staging: '${{ secrets.HC_RELEASES_KEY_STAGING }}' | |
hc-releases-terraform-registry-sync-token: '${{ secrets.TF_PROVIDER_RELEASE_TERRAFORM_REGISTRY_SYNC_TOKEN }}' | |
setup-signore-github-token: '${{ secrets.HASHI_SIGNORE_GITHUB_TOKEN }}' | |
signore-client-id: '${{ secrets.SIGNORE_CLIENT_ID }}' | |
signore-client-secret: '${{ secrets.SIGNORE_CLIENT_SECRET }}' | |
with: | |
# Update to tag name if switched to branch-based workflow | |
product-version: '${{ github.ref_name }}' | |
release-notes: true | |
setup-go-version: '${{ needs.go-version.outputs.version }}' |