Skip to content

Commit 7c82a9e

Browse files
author
joel@joellee.org
committedAug 23, 2023
fix: patch semantic ci
1 parent d53fa64 commit 7c82a9e

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed
 

‎.github/workflows/ci.yml

+23-7
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,38 @@ jobs:
2929

3030
- name: Upload Coverage
3131
uses: codecov/codecov-action@v1
32-
3332
publish:
3433
needs: test
35-
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/develop' && github.event_name == 'push' && github.repository_owner == 'supabase-community' }}
34+
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
42+
contents: write # needed for dependabot to write to repo
3843
steps:
3944
- name: Clone Repository
40-
uses: actions/checkout@v2
45+
uses: actions/checkout@v3
4146
with:
4247
ref: ${{ github.ref }}
4348
fetch-depth: 0
44-
49+
# This action uses Python Semantic Release v8
4550
- name: Python Semantic Release
46-
uses: relekang/python-semantic-release@v7.28.1
51+
id: release
52+
uses: python-semantic-release/python-semantic-release@v8.0.0
53+
with:
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: Publish package distributions to PyPI
57+
uses: pypa/gh-action-pypi-publish@release/v1
58+
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
59+
# See https://github.com/actions/runner/issues/1173
60+
if: steps.release.outputs.released == 'true'
61+
62+
- name: Publish package distributions to GitHub Releases
63+
uses: python-semantic-release/upload-to-gh-release@main
64+
if: steps.release.outputs.released == 'true'
4765
with:
4866
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
repository_username: __token__
50-
repository_password: ${{ secrets.PYPI_TOKEN }}

‎pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "supabase"
3-
version = "1.0.4"
3+
version = "1.0.5"
44
description = "Supabase client for Python."
55
authors = ["Joel Lee <joel@joellee.org>", "Leon Fedden <leonfedden@gmail.com>", "Daniel Reinón García <danielreinon@outlook.com>", "Leynier Gutiérrez González <leynier41@gmail.com>", "Anand"]
66
homepage = "https://github.com/supabase-community/supabase-py"
@@ -18,7 +18,7 @@ classifiers = [
1818
python = "^3.8"
1919
postgrest = "^0.10.8"
2020
realtime = "^1.0.0"
21-
gotrue = "^1.0.3"
21+
gotrue = "^1.0.4"
2222
httpx = "^0.24.0"
2323
storage3 = "^0.5.3"
2424
supafunc = "^0.2.3"
@@ -39,11 +39,11 @@ tests = 'poetry_scripts:run_tests'
3939

4040
[tool.semantic_release]
4141
version_variable = "supabase/__version__.py:__version__"
42-
version_toml = "pyproject.toml:tool.poetry.version"
42+
version_toml = ["pyproject.toml:tool.poetry.version"]
4343
major_on_zero = false
4444
commit_subject = "chore(release): bump version to v{version}"
4545
build_command = "curl -sSL https://install.python-poetry.org | python - --preview && export PATH=\"/github/home/.local/bin:$PATH\" && poetry install && poetry build"
46-
upload_to_repository = true
46+
upload_to_vcs = true
4747
branch = "develop"
4848
changelog_components = "semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url"
4949

‎supabase/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.4"
1+
__version__ = "1.0.5"

0 commit comments

Comments
 (0)
Please sign in to comment.