Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 3c9984b

Browse files
authored
Merge pull request #297 from supabase-community/j0/fix_semantic_release
fix: fix semantic release
2 parents 52474bc + 875484e commit 3c9984b

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,37 @@ jobs:
2929
run: |
3030
pip install pydantic==1.10.12
3131
make tests_only
32-
3332
publish:
3433
needs: test
3534
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' }}
3635
runs-on: ubuntu-latest
3736
name: "Bump version, create changelog and publish"
37+
environment:
38+
name: pypi
39+
url: https://pypi.org/p/gotrue
40+
permissions:
41+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
3842
steps:
3943
- name: Clone Repository
4044
uses: actions/checkout@v3
4145
with:
4246
ref: ${{ github.ref }}
4347
fetch-depth: 0
48+
# This action uses Python Semantic Release v8
4449
- name: Python Semantic Release
45-
uses: relekang/python-semantic-release@master
50+
id: release
51+
uses: python-semantic-release/[email protected]
52+
with:
53+
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
55+
- name: Publish package distributions to PyPI
56+
uses: pypa/gh-action-pypi-publish@release/v1
57+
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
58+
# See https://github.com/actions/runner/issues/1173
59+
if: steps.release.outputs.released == 'true'
60+
61+
- name: Publish package distributions to GitHub Releases
62+
uses: python-semantic-release/upload-to-gh-release@main
63+
if: steps.release.outputs.released == 'true'
4664
with:
4765
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
repository_username: __token__
49-
repository_password: ${{ secrets.PYPI_TOKEN }}

gotrue/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
"bitbucket",
2626
"discord",
2727
"facebook",
28+
"figma",
2829
"github",
2930
"gitlab",
3031
"google",
32+
"kakao",
3133
"keycloak",
3234
"linkedin",
3335
"notion",
@@ -36,6 +38,7 @@
3638
"twitch",
3739
"twitter",
3840
"workos",
41+
"zoom",
3942
]
4043

4144
AuthChangeEventMFA = Literal["MFA_CHALLENGE_VERIFIED"]

0 commit comments

Comments
 (0)