Skip to content

v0.44.3

v0.44.3 #38

Workflow file for this run

on:
release:
types:
- created
concurrency:
group: ${{ github.event.release.tag_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
verify-prerelease:
runs-on: ubuntu-latest
steps:
- run: |
echo "we only publish pre-releases!" >&2
exit 1
if: ${{ ! github.event.release.prerelease }}
qa:
needs: verify-prerelease
if: ${{ github.event.release.prerelease }}
uses: ./.github/workflows/ci.yml
publish:
needs: qa
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: strip prerelease component
run: echo "v=${V%%-rc}" >> $GITHUB_OUTPUT
id: strip
env:
V: ${{ github.event.release.tag_name }}
- name: Convert pre-release to release
run: |
curl -fX PATCH \
-H "Authorization: Bearer ${{ github.token }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{"draft": false, "prerelease": false, "make_latest": true, "tag_name": "${{ steps.strip.outputs.v }}"}' \
"https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}"
# delete pre-release tag
- run: |
git push origin :${{ github.event.release.tag_name }}
git tag -d ${{ github.event.release.tag_name }}
# we need the new tag for the next step
- run: git tag ${{ steps.strip.outputs.v }}
- uses: fischerscode/tagger@v0
with:
prefix: v
tag: ${{ steps.strip.outputs.v }}