This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #58 from umarcor/ci/skip

ci: support forks to run the PyPI workflow but prevent publishing

authored by

Tim Ansell and committed by
GitHub
(Feb 17, 2021, 12:35 PM -0800) 48b2cd1d e33fcc7d

+8 -3
+8 -3
.github/workflows/publish-to-pypi.yml
··· 2 2 3 3 on: 4 4 push: 5 - branches: 6 - - master 7 - - github-actions 5 + pull_request: 6 + workflow_dispatch: 8 7 9 8 jobs: 10 9 ··· 51 50 env: 52 51 TWINE_USERNAME: __token__ 53 52 TWINE_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }} 53 + if: env.TWINE_PASSWORD != null 54 54 run: | 55 55 twine upload --skip-existing --verbose --repository testpypi dist/*.tar.gz 56 56 57 57 # - name: 📤 Publish source to PyPI 58 + # if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'SymbiFlow/fasm' 58 59 # env: 59 60 # TWINE_USERNAME: __token__ 60 61 # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} ··· 128 129 env: 129 130 TWINE_USERNAME: __token__ 130 131 TWINE_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }} 132 + if: env.TWINE_PASSWORD != null 131 133 run: | 132 134 twine upload --skip-existing --verbose --repository testpypi dist/*.whl 133 135 134 136 # - name: 📤 Publish wheels to PyPI 137 + # if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'SymbiFlow/fasm' 135 138 # env: 136 139 # TWINE_USERNAME: __token__ 137 140 # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} ··· 193 196 env: 194 197 TWINE_USERNAME: __token__ 195 198 TWINE_PASSWORD: ${{ secrets.PYPI_TEST_PASSWORD }} 199 + if: env.TWINE_PASSWORD != null 196 200 run: | 197 201 twine upload --skip-existing --verbose --repository testpypi dist/*.whl 198 202 199 203 # - name: 📤 Publish wheels to PyPI 204 + # if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'SymbiFlow/fasm' 200 205 # env: 201 206 # TWINE_USERNAME: __token__ 202 207 # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}