diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 6bb673ba..2c2166a5 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -115,20 +115,24 @@ jobs: uses: actions/setup-python@v1 with: python-version: 3.7 - - name: build dummy wheel for test-pypi (hacking versioning to make it unique) + - name: build dummy wheel for test-pypi run: | pip install wheel python setup.py egg_info -b ".dev`date '+%Y%m%d%H%M%S'`" build sdist bdist_wheel - - name: publish test-pypi - if: github.event_name != 'pull_request' - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.test_pypi_token }} - repository_url: https://test.pypi.org/legacy/ +# - name: publish test-pypi +# # Although working and recommended, test-pypi has a limit +# # in the size of projects so it's better to avoid publishing +# # until there is a way to garbage collect these dummy releases +# if: github.event_name != 'pull_request' +# uses: pypa/gh-action-pypi-publish@master +# with: +# password: ${{ secrets.test_pypi_token }} +# repository_url: https://test.pypi.org/legacy/ build-n-publish: runs-on: ubuntu-latest needs: [linting, test] + if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/checkout@master - name: Set up Python 3.7 @@ -143,6 +147,5 @@ jobs: python setup.py sdist bdist_wheel - name: publish pypi uses: pypa/gh-action-pypi-publish@master - if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') with: password: ${{ secrets.pypi_token }} \ No newline at end of file