📦 v2023.10.27 📦 #8
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: Publish intake-esm to PyPI | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
deploy: | |
if: github.repository == 'intake/intake-esm' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install setuptools setuptools-scm wheel twine check-manifest | |
- name: Build tarball and wheels | |
run: | | |
git clean -xdf | |
git restore -SW . | |
python -m build --sdist --wheel . | |
- name: Test the artifacts | |
run: | | |
python -m twine check dist/* | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.8.10 | |
with: | |
user: ${{ secrets.PYPI_USERNAME }} | |
password: ${{ secrets.PYPI_PASSWORD }} | |
verbose: true |