Skip to content

Commit

Permalink
Add deploy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gevhaz committed May 29, 2022
1 parent 09f5d8c commit 10e8824
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Deploy

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "poetry"

- name: Install dependencies
run: |
poetry env use $(which python3.10)
poetry install
- name: Publish package
run: |
poetry publish --build
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}

0 comments on commit 10e8824

Please sign in to comment.