Update thiserror requirement from 1.0.65 to 2.0.7 #71
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: "Publish Release" | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- closed | |
- labeled | |
jobs: | |
publish-release: | |
name: Create new release tag | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'Release') | |
steps: | |
- name: Extract version from branch name (for release branches) | |
if: startsWith(github.event.pull_request.head.ref, 'release/') | |
run: | | |
BRANCH_NAME="${{ github.event.pull_request.head.ref }}" | |
VERSION=${BRANCH_NAME#release/} | |
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Initialize mandatory git config | |
run: | | |
git config user.name "GitHub actions" | |
git config user.email noreply@github.com | |
- name: Pushing tags | |
# we push as github-actions, so this will not trigger any actions that listen on pushed tags or something | |
run: | | |
VER=$(echo v${{ env.RELEASE_VERSION }} | sed 's/.*rc.*/rc/') | |
echo "RC=$VER" >> $GITHUB_ENV | |
git tag -a -m "Release v${{ env.RELEASE_VERSION }}" "v${{ env.RELEASE_VERSION }}" | |
git push origin v${{ env.RELEASE_VERSION }} | |
- name: Publish Release from Tag | |
run: gh release create v${{ env.RELEASE_VERSION }} --notes "Release v${{ env.RELEASE_VERSION }}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |