v0.1.17 #17
Workflow file for this run
This file contains 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: Release | |
on: | |
release: | |
types: | |
- created | |
permissions: | |
contents: read | |
jobs: | |
check-package: | |
name: Build & inspect our package. | |
runs-on: ubuntu-latest | |
if: ${{ github.repository }} == 'floriscalkoen/coastpy' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: hynek/build-and-inspect-python-package@v2 | |
release-pypi: | |
permissions: | |
id-token: write | |
contents: read | |
name: Publish released package to pypi.org | |
environment: release-pypi | |
runs-on: ubuntu-latest | |
needs: check-package | |
steps: | |
- name: Download packages built by build-and-inspect-python-package | |
uses: actions/download-artifact@v4 | |
with: | |
name: Packages | |
path: dist | |
- name: Upload package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |