Merge pull request #9 from SwissRe/release-prep/0.1.0 #1
Workflow file for this run
This file contains hidden or 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: | |
release-notes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate Release Notes | |
run: sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > release-notes.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: release-notes | |
path: release-notes.txt | |
retention-days: 1 | |
# TODO: enable when GPG key will be imported | |
# terraform-provider-release: | |
# name: Terraform Provider Release | |
# needs: [release-notes] | |
# uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/hashicorp.yml@v5.0.0 | |
# secrets: | |
# gpg-private-key: '${{ secrets.GPG_PRIVATE_KEY }}' | |
# with: | |
# setup-go-version-file: 'go.mod' | |
# release-notes: true | |
# goreleaser-release-args: --timeout 2h --verbose --parallelism 4 |