Monthly Release #10
This file contains hidden or 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: Monthly Release | |
on: | |
schedule: | |
- cron: "0 0 1 * *" | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set Version Variables | |
run: echo "VERSION=2025.8.4" >> $GITHUB_ENV | |
- name: Set Release Date | |
run: echo "RELEASE_DATE='August 2025'" >> $GITHUB_ENV | |
- name: Update pyproject.toml Version | |
run: sed -i 's/^version = ".*"/version = "'"$VERSION"'"/' pyproject.toml | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git add pyproject.toml | |
git commit -am "chore: Bump version to $VERSION" | |
git push | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: v${{ env.VERSION }} | |
name: Version ${{ env.VERSION }} | |
body: "## ${{ env.RELEASE_DATE }} Update" | |
draft: false | |
prerelease: false | |
make_latest: true |