Skip to content

Commit

Permalink
Add GitHub Action to publish to TestPyPI
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Weber <[email protected]>
  • Loading branch information
scy committed Dec 28, 2024
1 parent ecf8f40 commit fca1f58
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,26 @@ jobs:
cd dist
find . -type f -exec curl --netrc --upload-file '{}' "$NEXTCLOUD_BASE" \;
pypi-publish:
name: Upload release to PyPI
needs: build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/dearmep
permissions:
id-token: write
steps:
- name: Retrieve Python package
uses: actions/download-artifact@v3
with:
name: python-package
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

deploy:
needs: build # Technically, it only needs "backend", but we want the build to succeed first.

Expand Down

0 comments on commit fca1f58

Please sign in to comment.