Skip to content

Commit

Permalink
Create Pypi publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinsonBeaucour authored Jun 28, 2024
1 parent 78a5b33 commit d8cff40
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python Package Publish

on:
release:
types: [published]

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local/poetry python -
export PATH="$PATH:$POETRY_HOME/bin"
- name: Install dependencies
run: poetry install

- name: Build and publish
env:
TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry build
poetry config pypi-token.pypi $TOKEN
poetry publish -r pypi

0 comments on commit d8cff40

Please sign in to comment.