Skip to content

Commit

Permalink
fix: deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier authored Jan 4, 2022
1 parent 293065c commit 467fa3f
Show file tree
Hide file tree
Showing 8 changed files with 482 additions and 136 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,18 @@ jobs:

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' }}
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
runs-on: ubuntu-latest
name: "Bump version, create changelog and publish"
steps:
- name: Clone Repository
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: body.md
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.11
# - name: Publish
# env:
# PYPI_USERNAME: __token__
# PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# run: |
# poetry install
# poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Changelog

<!--next-version-placeholder-->

## v0.3.0 (2021-12-03)

### Fix
Expand Down
6 changes: 3 additions & 3 deletions gotrue/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ def on_auth_state_change(
error : APIError
If an error occurs
"""
unique_id: str = uuid4().hex
unique_id = uuid4()
subscription = Subscription(
id=unique_id,
callback=callback,
unsubscribe=partial(self._unsubscribe, id=unique_id),
unsubscribe=partial(self._unsubscribe, id=unique_id.hex),
)
self.state_change_emitters[unique_id] = subscription
self.state_change_emitters[unique_id.hex] = subscription
return subscription

async def _handle_email_sign_in(
Expand Down
6 changes: 3 additions & 3 deletions gotrue/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ def on_auth_state_change(
error : APIError
If an error occurs
"""
unique_id: str = uuid4().hex
unique_id = uuid4()
subscription = Subscription(
id=unique_id,
callback=callback,
unsubscribe=partial(self._unsubscribe, id=unique_id),
unsubscribe=partial(self._unsubscribe, id=unique_id.hex),
)
self.state_change_emitters[unique_id] = subscription
self.state_change_emitters[unique_id.hex] = subscription
return subscription

def _handle_email_sign_in(
Expand Down
Loading

0 comments on commit 467fa3f

Please sign in to comment.