Skip to content

Commit

Permalink
Publish release to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
jpauwels committed Mar 3, 2024
1 parent 00c6000 commit f058a5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Python package

on:
push:
branches: [ "main" ]
branches: [ "gh-actions" ]
pull_request:
branches: [ "main" ]
branches: [ "gh-actions" ]

jobs:
build:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
name: Upload Python Package

on:
push:
branches: [ "gh-actions" ]
release:
types:
- published
Expand All @@ -32,4 +34,5 @@ jobs:
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 comments on commit f058a5f

Please sign in to comment.