updated dependencies. added github workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Package | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11.6' | |
- name: Install Poetry | |
run: | | |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - | |
export PATH="$HOME/.poetry/bin:$PATH" | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Build package | |
run: | | |
poetry build | |
- name: Publish to PyPI | |
env: | |
POETRY_PYPI_TOKEN: ${{ secrets.POETRY_PYPI_TOKEN }} | |
run: | | |
poetry publish --no-interaction --username "__token__" --password "$POETRY_PYPI_TOKEN" |