Use gxformat2 0.25 lint interface; drop duplicated best-practices #4
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 | |
| submodules: true | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip setuptools | |
| python3 -m pip install --upgrade build twine | |
| - name: Create and check 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 |