Merge pull request #321 from AIM-Harvard/fix-#320 #28
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: Auto Publish | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2.2.2 | |
| with: | |
| python-version: 3.9 | |
| - name: Install poetry | |
| run: make setup | |
| - name: Bump version | |
| run: | | |
| poetry version prerelease | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add . | |
| git commit -m "Bump version" || echo "No changes to commit" | |
| - name: Push changes | |
| run: git push | |
| - name: Build and publish to pypi | |
| uses: JRubics/poetry-publish@v2.1 | |
| with: | |
| python_version: 3.9 | |
| pypi_token: ${{ secrets.PYPI_TOKEN }} | |
| allow_poetry_pre_release: "yes" | |
| ignore_dev_requirements: "yes" |