diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 68b14e9..fa1530f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,7 +15,7 @@ jobs: python-version: '3.x' cache: 'pip' cache-dependency-path: 'requirements/*.txt' - - run: pip install -r requirements/build.txt + - run: pip install build # Use the commit date instead of the current date during the build. - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - run: python -m build @@ -56,12 +56,18 @@ jobs: needs: ['provenance'] # Wait for approval before attempting to upload to PyPI. This allows reviewing the # files in the draft release. - environment: 'publish' + environment: + name: publish + url: https://pypi.org/project/Pallets-Sphinx-Themes/ runs-on: ubuntu-latest permissions: id-token: write steps: - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a + - uses: pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598 + with: + repository-url: https://test.pypi.org/legacy/ + packages-dir: artifact/ - uses: pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598 with: packages-dir: artifact/