From 0aabb8895065600447fdf60464e055a837390443 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Sat, 5 Oct 2024 16:40:19 -0700 Subject: [PATCH] revert trusted publisher release config in CI --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84f4cef49..47fcfcf45 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -251,8 +251,6 @@ jobs: if: ${{ github.event_name == 'push' && github.repository == 'jbms/sphinx-immaterial' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') }} runs-on: ubuntu-latest needs: [build, test] - permissions: - id-token: write steps: - uses: actions/download-artifact@v4 with: @@ -262,10 +260,15 @@ jobs: uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3 continue-on-error: true with: + user: __token__ + password: ${{ secrets.pypi_test_token }} repository-url: https://test.pypi.org/legacy/ if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} - name: Publish to PyPI (main server) uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3 + with: + user: __token__ + password: ${{ secrets.pypi_token }} if: ${{ startsWith(github.ref, 'refs/tags/v') }} - uses: actions/checkout@v4 if: ${{ startsWith(github.ref, 'refs/tags/v') }}