chore: Add Semantic Release GitHub action

This commit is contained in:
kalzoo 2021-11-16 22:42:03 -08:00
parent 89d1f47fac
commit 32faddf322

View File

@ -16,12 +16,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python 3.8 - name: Set up Python 3.8
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: 3.8
- name: Install poetry - name: Install poetry
run: python -m pip install poetry run: python -m pip install poetry
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build package - name: Build package
run: poetry build run: poetry build
- name: Publish package to PyPI - name: Publish package to PyPI