Merge pull request #56 from VIDA-NYU/fix/53-distributed #6
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: Version Bump | |
on: | |
push: | |
branches: | |
- main # Assuming version bumps happen on pushes to 'main' | |
jobs: | |
bump-version: | |
if: false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Ensures history is available for versioning | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
# Install any dependencies you need for versioning script | |
# pip install ... | |
- name: Bump Version | |
run: | | |
# Script to bump version in pyproject.toml | |
# E.g., using Python to read, increment, and write back the version | |
python path/to/version_bump_script.py | |
- name: Commit and Push | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add pyproject.toml | |
git commit -m "Increment version" | |
git push |