Skip to content

Commit

Permalink
fix publish-pypi job (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
ITProKyle committed Sep 12, 2024
1 parent d680dcb commit 6eb9d24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/project/sphinxcontrib.external-links
url: https://test.pypi.org/project/${{ github.event.repository.name }}
permissions:
id-token: write
steps:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@ on:
types:
- published

env:
DEFAULT_PYTHON_VERSION: 3.12

jobs:
python-build:
uses: finleyfamily/workflows/.github/workflows/python.build.yml@master
publish-test-pypi:
publish-pypi:
name: 🚀 Publish 📦 To PyPI
if: github.event_name == 'push' && github.ref_name == 'master'
needs:
- python-build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/sphinxcontrib.external-links
url: https://pypi.org/project/${{ github.event.repository.name }}
permissions:
id-token: write
steps:
Expand Down

0 comments on commit 6eb9d24

Please sign in to comment.