Skip to content

Commit

Permalink
👷 Enable release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Nov 16, 2022
1 parent 0a64546 commit f84f1b1
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,38 @@ jobs:
run: |
pre-commit run --hook-stage manual black --all-files --show-diff-on-failure
#publish-on-testpypi:
# name: 📦 Publish on TestPyPI
# if: github.event_name == 'release'
# needs:
# - build
# - lint-black
# runs-on: ubuntu-latest
# steps:
# - name: ⬇ Download build result
# uses: actions/download-artifact@v1
# with:
# name: dist
# path: dist
# - name: 📦 Publish to index
# uses: pypa/gh-action-pypi-publish@master
# continue-on-error: true
# with:
# password: ${{ secrets.testpypi_password }}
# repository_url: https://test.pypi.org/legacy/
publish-on-testpypi:
name: 📦 Publish on TestPyPI
if: github.event_name == 'release'
needs:
- build
- lint-black
runs-on: ubuntu-latest
steps:
- name: ⬇ Download build result
uses: actions/download-artifact@v1
with:
name: dist
path: dist
- name: 📦 Publish to index
uses: pypa/gh-action-pypi-publish@master
continue-on-error: true
with:
password: ${{ secrets.testpypi_password }}
repository_url: https://test.pypi.org/legacy/

#publish-on-pypi:
# name: 📦 Publish tagged releases to PyPI
# if: github.event_name == 'release'
# needs: publish-on-testpypi
# runs-on: ubuntu-latest
# steps:
# - name: ⬇ Download build result
# uses: actions/download-artifact@v1
# with:
# name: dist
# path: dist
# - name: 📦 Publish to index
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.pypi_password }}
publish-on-pypi:
name: 📦 Publish tagged releases to PyPI
if: github.event_name == 'release'
needs: publish-on-testpypi
runs-on: ubuntu-latest
steps:
- name: ⬇ Download build result
uses: actions/download-artifact@v1
with:
name: dist
path: dist
- name: 📦 Publish to index
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit f84f1b1

Please sign in to comment.