-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated dependencies. added github workflow
- Loading branch information
Showing
3 changed files
with
126 additions
and
113 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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" |
Oops, something went wrong.