Skip to content

Commit

Permalink
Publish to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua authored Aug 5, 2024
1 parent 9b9ad84 commit 112fa2d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
path: dist/

pypi-publish:
name: >-
Publish to PyPI
runs-on: ubuntu-latest

needs:
Expand All @@ -52,3 +55,31 @@ jobs:

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

testpypi-publish:
name: >-
Publish to TestPyPI
runs-on: ubuntu-latest

needs:
- release-build

permissions:
id-token: write

environment:
name: testpypi
url: https://test.pypi.org/p/instawebhooks

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish release distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 112fa2d

Please sign in to comment.