Skip to content

Commit

Permalink
updated dependencies. added github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
besil committed Apr 12, 2024
1 parent d7ea14f commit b5e98d5
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 113 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yaml
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"
Loading

0 comments on commit b5e98d5

Please sign in to comment.