Skip to content

fix: do not explicitly set the python interpreter #5

fix: do not explicitly set the python interpreter

fix: do not explicitly set the python interpreter #5

Workflow file for this run

# Source: https://github.com/release-drafter/release-drafter/blob/master/.github/workflows/release.yml
---
name: Release
on:
push:
tags:
- v*.*.*
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Version
id: version
run: |
tag=${GITHUB_REF/refs\/tags\//}
version=${tag#v}
major=${version%%.*}
echo "tag=${tag}" >> "$GITHUB_OUTPUT"
echo "version=${version}" >> "$GITHUB_OUTPUT"
echo "major=${major}" >> "$GITHUB_OUTPUT"
- name: force update major tag
run: |
# Move that tag to the latest 'major' version, like 'v1', 'v2' in the future etc.
git tag v${{ steps.version.outputs.major }} ${{ steps.version.outputs.tag }} -f
git push origin refs/tags/v${{ steps.version.outputs.major }} -f