Skip to content

Commit

Permalink
Merge pull request #5 from supabase-community/fix-py3.7
Browse files Browse the repository at this point in the history
Setup CD versioning and publishing with semantic release
  • Loading branch information
dreinon authored Apr 30, 2022
2 parents 5a8a1b4 + f541599 commit 9e840bc
Show file tree
Hide file tree
Showing 5 changed files with 554 additions and 184 deletions.
File renamed without changes.
35 changes: 5 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,12 @@ jobs:
- 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.2.0b1

- 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 }}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Changelog

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

## v0.2.0 (2022-04-11)

### What's Changed

- Sync support by @anand2312 in https://github.com/supabase-community/storage-py/pull/1

### New Contributors

- @anand2312 made their first contribution in https://github.com/supabase-community/storage-py/pull/1

## v0.1.0 (2021-12-24)

### Refactor
Expand Down
Loading

0 comments on commit 9e840bc

Please sign in to comment.