chore: Release rhai-autodocs version 0.5.4 #15
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*" | |
permissions: | |
contents: write | |
jobs: | |
get-release-version: | |
runs-on: ubuntu-latest | |
outputs: | |
rv: ${{ steps.get.outputs.version }} | |
steps: | |
- name: Get release version from tag | |
id: get | |
shell: bash | |
run: | | |
version="${GITHUB_REF#refs/tags/}" | |
echo "version=${version}" >> $GITHUB_OUTPUT | |
echo "rhai-autodocs release version=${version}" | |
changelog: | |
runs-on: ubuntu-latest | |
needs: [get-release-version] | |
outputs: | |
release_body: ${{ steps.git-cliff.outputs.content }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Generate changelog | |
uses: orhun/git-cliff-action@v2 | |
id: git-cliff | |
with: | |
config: cliff.toml | |
args: --latest --verbose --tag ${{ needs.get-release-version.outputs.rv }} | |
publish-github: | |
needs: changelog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# - name: Sign the release | |
# shell: bash | |
# run: | | |
# echo "${{ secrets.GPG_RELEASE_KEY }}" | base64 --decode > private.key | |
# echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --pinentry-mode=loopback \ | |
# --passphrase-fd 0 --import private.key | |
# echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --pinentry-mode=loopback \ | |
# --passphrase-fd 0 --detach-sign \ | |
# linuxwave-${{ env.RELEASE_VERSION }}-${{ matrix.build.TARGET }}.tar.gz | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: ${{ needs.changelog.outputs.release_body }} | |
tag_name: ${{ needs.get-release-version.outputs.rv }} | |
token: ${{ secrets.GITHUB_TOKEN }} |