Skip to content

Commit ba63370

Browse files
committed
Publish release to TestPyPI
1 parent 9b48272 commit ba63370

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python package
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "gh-actions" ]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: [ "gh-actions" ]
1111

1212
jobs:
1313
build:

.github/workflows/python-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
name: Upload Python Package
1111

1212
on:
13+
push:
14+
branches: [ "gh-actions" ]
1315
release:
1416
types:
1517
- published
@@ -32,4 +34,5 @@ jobs:
3234
- name: Publish package
3335
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3436
with:
35-
password: ${{ secrets.PYPI_API_TOKEN }}
37+
repository_url: https://test.pypi.org/legacy/
38+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)