Merge pull request #181 from jmchilton/abstraction_applications #84
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 requirements | |
| run: | | |
| python3 -m pip install build twine | |
| - name: Create and check sdist and wheel packages | |
| run: make dist | |
| - uses: actions/upload-artifact@v7 | |
| 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@v8 | |
| with: | |
| name: packages | |
| path: dist | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |