Bump actions/checkout from 6.0.0 to 6.0.1 in the github-actions group #85
Workflow file for this run
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: Publish to PyPI | |
| on: | |
| pull_request: | |
| push: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| pypi-publish: | |
| name: Upload release to PyPI | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/xarray_subset_grid/ | |
| permissions: | |
| id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| # Should be enough for setuptools-scm | |
| fetch-depth: 100 | |
| persist-credentials: false | |
| - name: Get tags | |
| run: git fetch origin 'refs/tags/*:refs/tags/*' | |
| - name: Set up Python | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: "3.x" | |
| - name: Install build tools | |
| run: | | |
| python -m pip install --upgrade pip build twine | |
| - name: Build binary wheel | |
| run: python -m build --sdist --wheel . --outdir dist | |
| - name: CheckFiles | |
| run: | | |
| ls -lh dist | |
| - name: Test wheels | |
| run: | | |
| cd dist && python -m pip install xarray_subset_grid*.whl | |
| python -m twine check * | |
| - name: Publish package distributions to PyPI | |
| if: success() && github.event_name == 'release' | |
| uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 |