@@ -21,47 +21,26 @@ jobs:
21
21
- name : Set up Poetry
22
22
23
23
with :
24
- poetry-version : 1.1.11
24
+ poetry-version : 1.1.12
25
25
- name : Run Tests
26
26
run : make run_tests
27
27
- name : Upload Coverage
28
28
uses : codecov/codecov-action@v1
29
29
30
30
publish :
31
31
needs : test
32
- if : ${{ !startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/develop' && github.event_name == 'push' }}
32
+ 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 ' }}
33
33
runs-on : ubuntu-latest
34
34
name : " Bump version, create changelog and publish"
35
35
steps :
36
36
- name : Clone Repository
37
37
uses : actions/checkout@v2
38
38
with :
39
+ ref : ${{ github.ref }}
39
40
fetch-depth : 0
40
- - name : Create bump and changelog
41
- uses : commitizen-tools/commitizen-action @master
41
+ - name : Python Semantic Release
42
+ uses : relekang/python-semantic-release @master
42
43
with :
43
44
github_token : ${{ secrets.GITHUB_TOKEN }}
44
- branch : develop
45
- changelog_increment_filename : body.md
46
- - name : Release
47
- uses : softprops/action-gh-release@v1
48
- with :
49
- body_path : body.md
50
- tag_name : ${{ env.REVISION }}
51
- env :
52
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
- - name : Set up Python 3.9
54
- uses : actions/setup-python@v2
55
- with :
56
- python-version : 3.9
57
- - name : Set up Poetry
58
-
59
- with :
60
- poetry-version : 1.1.11
61
- # - name: Publish
62
- # env:
63
- # PYPI_USERNAME: __token__
64
- # PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
65
- # run: |
66
- # poetry install
67
- # poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
45
+ repository_username : __token__
46
+ repository_password : ${{ secrets.PYPI_TOKEN }}
0 commit comments