(docs) minor update #46
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: Deploy to PyPI | |
on: | |
push: | |
tags-ignore: ['*.docs*'] | |
# only run on tags, and only if they don't end with docs | |
jobs: | |
pypi-publish: | |
name: Publish to TestPyPI and PyPI | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Download build artifacts | |
uses: dawidd6/action-download-artifact@v3 | |
with: | |
workflow: build.yml | |
workflow_conclusion: success | |
check_artifacts: true | |
branch: 'master' | |
- name: Prepare for upload | |
run: | | |
mkdir dist | |
mv sdist/* dist | |
mv wheels/* dist | |
# - name: Upload to TestPyPI | |
# uses: pypa/gh-action-pypi-publish@release/v1 | |
# with: | |
# repository-url: https://test.pypi.org/legacy/ | |
# password: ${{ secrets.TESTPYPI_API_TOKEN }} | |
- name: Upload to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
# with: | |
# password: ${{ secrets.PYPI_API_TOKEN }} |