Merge pull request #41 from coveord/chore/merge #3
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 to PyPI | |
on: | |
push: | |
tags: ["*"] # this will run full workflow including publish to PyPI | |
workflow_dispatch: | |
jobs: | |
build: | |
uses: "./.github/workflows/_build-pkg.yml" | |
with: | |
artifact-name: package | |
publish: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: package | |
path: dist | |
- name: Install twine | |
run: pip install -q twine | |
- name: Publish 📦 to PyPI | |
# only run this for tags | |
if: startsWith(github.event.ref, 'refs/tags/') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: twine upload dist/* |