Skip to content

Commit

Permalink
github actions added
Browse files Browse the repository at this point in the history
  • Loading branch information
tueboesen committed Mar 16, 2023
1 parent 5f2f1aa commit 7cd4fea
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to PyPI

on:
release:
types: [ published ]
branches: [ master ]
workflow_dispatch:

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

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install poetry and dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Configure poetry
env:
pypi_token: ${{ secrets.PYPI_TOKEN }}
run: poetry config pypi-token.pypi $pypi_token

- name: Build and publish
run: poetry publish --build

0 comments on commit 7cd4fea

Please # to comment.