@@ -21,47 +21,26 @@ jobs:
2121 - name : Set up Poetry
2222 uses : abatilo/actions-poetry@v2.1.4
2323 with :
24- poetry-version : 1.1.11
24+ poetry-version : 1.1.12
2525 - name : Run Tests
2626 run : make run_tests
2727 - name : Upload Coverage
2828 uses : codecov/codecov-action@v1
2929
3030 publish :
3131 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 ' }}
3333 runs-on : ubuntu-latest
3434 name : " Bump version, create changelog and publish"
3535 steps :
3636 - name : Clone Repository
3737 uses : actions/checkout@v2
3838 with :
39+ ref : ${{ github.ref }}
3940 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
4243 with :
4344 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- uses : abatilo/actions-poetry@v2.1.4
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