Memfix (#106) #31
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: Auto Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- name: Install poetry | |
run: make setup | |
- name: Bump version | |
run: | | |
poetry version prerelease | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Bump version" || echo "No changes to commit" | |
- name: Update diagram | |
uses: githubocto/repo-visualizer@main | |
with: | |
excluded_paths: "ignore,.github" | |
should_push: false | |
- name: Push changes | |
run: git push | |
- name: Build and publish to pypi | |
uses: JRubics/[email protected] | |
with: | |
python_version: 3.8 | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |
allow_poetry_pre_release: "yes" | |
ignore_dev_requirements: "yes" |