Skip to content

Commit

Permalink
Merge pull request #177 from havogt/enable_deploy_workflow
Browse files Browse the repository at this point in the history
Enable deploy workflow
  • Loading branch information
boeschf authored Jan 6, 2025
2 parents c37725c + 1f73dd5 commit c08f987
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/pypi_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,29 @@ jobs:
with:
name: ghex-dist
path: ./dist/**
# publish-pypi:
# name: Publish Python distribution to pypi.org
# runs-on: ubuntu-latest
# needs: build
# if: ${{ github.event_name == 'workflow_dispatch' }} # the action was triggered manually
# environment:
# name: pypi
# url: https://pypi.org/project/ghex
# permissions:
# id-token: write
# steps:
# - name: Download wheel
# uses: actions/download-artifact@v3
# with:
# name: ghex-dist
# path: dist
# - name: Publish distribution to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
publish-pypi:
name: Publish Python distribution to pypi.org
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'workflow_dispatch' }} # the action was triggered manually
environment:
name: pypi
url: https://pypi.org/project/ghex
permissions:
id-token: write
steps:
- name: Download wheel
uses: actions/download-artifact@v3
with:
name: ghex-dist
path: dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
publish-test-pypi:
name: Publish Python distribution to test.pypi.org
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'workflow_dispatch' }} # TODO: once working, enable line below
# if: ${{ github.event_name == 'release' }} # triggered by releasing on github, test first before manually triggering the deployment to PyPI (see release documentation)
if: ${{ github.event_name == 'release' }} # triggered by releasing on github, test first before manually triggering the deployment to PyPI
environment:
name: testpypi
url: https://test.pypi.org/project/ghex/
Expand Down

0 comments on commit c08f987

Please sign in to comment.