Skip to content

Commit

Permalink
change testpub to merged PR trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Oct 16, 2021
1 parent ff91623 commit b90ae81
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/testpub.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: Test Publish to PyPI
on:
push:
branches:
- main
tags:
- 'v?*.*.*'
pull_request:
types: [ closed ]

jobs:
test-publish:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/setup-python@v2
with:
Expand All @@ -18,4 +16,4 @@ jobs:
- run: poetry config repositories.testpypi https://test.pypi.org/legacy/
- run: poetry config pypi-token.testpypi "${{ secrets.TEST_PYPI_API_KEY }}"
- name: publish package (test)
run: poetry publish --build -r testpypi
run: poetry publish --dry-run -vvv --no-interaction --build -r testpypi

0 comments on commit b90ae81

Please sign in to comment.