diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70a7f2703..8882e4c5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,9 +61,26 @@ jobs: # prepare for deployment make generate-paths + - name: Stores dists (Python 3.8) + uses: actions/upload-artifact@v2 + if: "${{ matrix.python-version }} == 3.8" + with: + name: dists + path: dist/* + + release-test: + runs-on: ubuntu-latest + needs: + - build + if: github.ref == 'refs/heads/master' + steps: + - name: Retrieve dists + uses: actions/download-artifact@v2 + with: + name: dists - name: Publish distribution 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@master - if: github.ref == 'refs/heads/master' with: + verify_metadata: false password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 569ca5d9a..8b453ee47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,6 @@ jobs: release: runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 @@ -24,10 +21,10 @@ jobs: id: tag run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/} - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.8 uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 - name: Checkout the current branch run: | @@ -67,6 +64,7 @@ jobs: - name: Publish distribution 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@master with: + verify_metadata: false password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/