| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,7 @@ | |||
| 1 | 1 | name: Publish packages | |
| 2 | 2 | on: | |
| 3 | - push: | ||
| 4 | - branches: | ||
| 5 | - - master | ||
| 3 | + release: | ||
| 4 | + types: [published] | ||
| 6 | 5 | ||
| 7 | 6 | jobs: | |
| 8 | 7 | build-n-publish: | |
@@ -30,15 +29,7 @@ jobs: | |||
| 30 | 29 | --wheel | |
| 31 | 30 | --outdir dist/ | |
| 32 | 31 | . | |
| 33 | - - name: Publish on test pypi | ||
| 34 | - uses: pypa/gh-action-pypi-publish@master | ||
| 35 | - continue-on-error: true | ||
| 36 | - with: | ||
| 37 | - password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
| 38 | - repository_url: https://test.pypi.org/legacy/ | ||
| 39 | - | ||
| 40 | 32 | - name: Publish release on pypi | |
| 41 | - if: startsWith(github.ref, 'refs/tags') | ||
| 42 | 33 | uses: pypa/gh-action-pypi-publish@master | |
| 43 | 34 | with: | |
| 44 | 35 | password: ${{ secrets.PYPI_API_TOKEN }} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments