Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,37 @@ 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
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 }}
3 changes: 3 additions & 0 deletions gotrue/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
"bitbucket",
"discord",
"facebook",
"figma",
"github",
"gitlab",
"google",
"kakao",
"keycloak",
"linkedin",
"notion",
Expand All @@ -36,6 +38,7 @@
"twitch",
"twitter",
"workos",
"zoom",
]

AuthChangeEventMFA = Literal["MFA_CHALLENGE_VERIFIED"]
Expand Down