diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3750df8..20fc8ad 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,9 +5,9 @@ name: Python package on: push: - branches: [ "main" ] + branches: [ "gh-actions" ] pull_request: - branches: [ "main" ] + branches: [ "gh-actions" ] jobs: build: diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 11de053..a614005 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,6 +10,8 @@ name: Upload Python Package on: + push: + branches: [ "gh-actions" ] release: types: - published @@ -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 }}