From 0cf22c2709f294d404549e141cae64d6c240fde5 Mon Sep 17 00:00:00 2001 From: "joel@joellee.org" Date: Wed, 23 Aug 2023 20:03:50 +0200 Subject: [PATCH 1/4] chore: upgrade smenatic release --- .github/workflows/ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a16e9b50..f5639663 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,9 +41,21 @@ jobs: with: ref: ${{ github.ref }} fetch-depth: 0 + # This action uses Python Semantic Release v8 - name: Python Semantic Release - uses: relekang/python-semantic-release@master + id: release + uses: python-semantic-release/python-semantic-release@v8.0.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true. + # See https://github.com/actions/runner/issues/1173 + if: steps.release.outputs.released == 'true' + + - name: Publish package distributions to GitHub Releases + uses: python-semantic-release/upload-to-gh-release@main + if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} - repository_username: __token__ - repository_password: ${{ secrets.PYPI_TOKEN }} From e033cee2e42ae318614dd59a9ba02b8f15ce5600 Mon Sep 17 00:00:00 2001 From: "joel@joellee.org" Date: Wed, 23 Aug 2023 20:05:52 +0200 Subject: [PATCH 2/4] fix: add type definitions for new providers --- gotrue/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gotrue/types.py b/gotrue/types.py index 8defdc66..94b58805 100644 --- a/gotrue/types.py +++ b/gotrue/types.py @@ -25,9 +25,11 @@ "bitbucket", "discord", "facebook", + "figma", "github", "gitlab", "google", + "kakao", "keycloak", "linkedin", "notion", @@ -36,6 +38,7 @@ "twitch", "twitter", "workos", + "zoom" ] AuthChangeEventMFA = Literal["MFA_CHALLENGE_VERIFIED"] From b4c16818ba781fe597766d81816c2be5a8a8265e Mon Sep 17 00:00:00 2001 From: "joel@joellee.org" Date: Wed, 23 Aug 2023 20:06:22 +0200 Subject: [PATCH 3/4] fix: add new providers --- gotrue/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotrue/types.py b/gotrue/types.py index 94b58805..e7ae555e 100644 --- a/gotrue/types.py +++ b/gotrue/types.py @@ -38,7 +38,7 @@ "twitch", "twitter", "workos", - "zoom" + "zoom", ] AuthChangeEventMFA = Literal["MFA_CHALLENGE_VERIFIED"] From 875484ede1f71e2a87992bc52381bc2c649f7966 Mon Sep 17 00:00:00 2001 From: "joel@joellee.org" Date: Wed, 23 Aug 2023 20:18:39 +0200 Subject: [PATCH 4/4] fix: add relevant pypi info and permissions --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5639663..9f1c8e29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,12 +29,16 @@ jobs: run: | pip install pydantic==1.10.12 make tests_only - publish: needs: test if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase-community' }} runs-on: ubuntu-latest name: "Bump version, create changelog and publish" + environment: + name: pypi + url: https://pypi.org/p/gotrue + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - name: Clone Repository uses: actions/checkout@v3