Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# .github/workflows/bump-version.yml
name: Bump Version on Merge to Main

on:
push:
branches:
Expand All @@ -13,37 +14,26 @@ jobs:
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0 # Fetch all history for all branches and tags

- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
poetry install
poetry add --group dev python-semantic-release
- run: pip install python-semantic-release

- name: Configure Git user
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Run Semantic Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: poetry run semantic-release publish
run: semantic-release version

- name: Push version bump commit and tags
- name: Push changes
run: |
git pull --ff-only origin main
git push origin main --follow-tags
git push --follow-tags