Merge pull request #526 from galaxyproject/dependabot/github_actions/… #1080
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: Deploy | |
| on: [push, pull_request] | |
| jobs: | |
| build_packages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: pip | |
| - name: Install tox | |
| run: | | |
| python3 -m pip install 'tox>=1.8.0' | |
| - name: Create and check sdist and wheel packages | |
| run: tox -e build | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: packages | |
| path: dist/ | |
| pypi-publish: | |
| needs: [build_packages] | |
| name: Upload release to PyPI | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.repository_owner == 'galaxyproject' | |
| steps: | |
| - uses: actions/download-artifact@v7 | |
| with: | |
| name: packages | |
| path: dist | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |