Skip to content

Commit

Permalink
Merge pull request #297 from supabase-community/j0/fix_semantic_release
Browse files Browse the repository at this point in the history
fix: fix semantic release
  • Loading branch information
J0 authored Aug 23, 2023
2 parents 52474bc + 875484e commit 3c9984b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
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/[email protected]
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

0 comments on commit 3c9984b

Please sign in to comment.