v0.1.4 #5
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" | |
on: | |
release: | |
types: [published] | |
concurrency: | |
group: publish-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: 'bash' | |
jobs: | |
publish-test-pypi: | |
name: π Β» publish to test.pypi βοΈ | |
if: ${{ github.event.act }} | |
runs-on: ubuntu-latest | |
environment: pypi-test | |
steps: | |
# checkout | |
- name: π Β» checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: π Β» build & publish to test.pypi | |
uses: JRubics/poetry-publish@v1.17 | |
with: | |
ignore_dev_requirements: "yes" | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |
repository_name: "testpypi" | |
repository_url: "https://test.pypi.org/legacy/" | |
publish: | |
name: π Β» publish to pypi π | |
if: ${{ !github.event.act }} | |
runs-on: ubuntu-latest | |
environment: pypi | |
steps: | |
# checkout | |
- name: π Β» checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: π Β» build & publish to test.pypi | |
uses: JRubics/poetry-publish@v1.17 | |
with: | |
ignore_dev_requirements: "yes" | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |