-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,26 +18,29 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: python -m pip install --upgrade pip build | ||
- name: Install required packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install toml | ||
- name: Run version bump script | ||
run: python .github/bump_version_setupcfg.py | ||
- name: Automated Version Bump | ||
run: python .github/bump_version.py | ||
|
||
- name: Commit and push version bump | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add setup.cfg | ||
git commit -m "Automated version bump" || echo "No changes to commit" | ||
git add setup.cfg pyproject.toml | ||
git commit -m "Automated Version Bump" -a | ||
git push | ||
- name: Build distribution 📦 | ||
run: python -m build | ||
- name: Install pypa/build | ||
run: | | ||
python -m pip install build --user | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
|