Release #1
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: | |
workflow_dispatch: | |
concurrency: | |
group: "${{ github.workflow }}" | |
jobs: | |
bump-version: | |
name: Bump version | |
environment: release | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Get latest version | |
run: echo OLD_VERSION=$(gh release list -L 1 --json name | jq -r '.[0].name') >> $GITHUB_ENV | |
- name: Bump version file | |
run: python dev/bump-version.py `` | |
- name: Push changes | |
run: | | |
git add . | |
git commit -m "Bump version to ${NEW_VERSION}" | |
git push | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
generate_release_notes: true | |
name: "${NEW_VERSION}" | |
tag_name: "v${NEW_VERSION}" |