Skip to content

Commit

Permalink
Deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto committed May 23, 2024
1 parent c710dfd commit fce8608
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,28 @@ jobs:
- name: Run pyright
run: poetry run pyright

deploy:
needs: build-and-test
runs-on: macos-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install Poetry
uses: snok/install-poetry@v1.3.1

- name: Install dependencies
run: poetry install

- name: Build and Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry build
poetry publish

0 comments on commit fce8608

Please sign in to comment.