Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tammoippen committed Nov 7, 2024
1 parent bdb3438 commit 56fd021
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish

on:
push:
tags:
- v*
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: pypi

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set Up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3

- name: Build
run: poetry build -vvv -f sdist

- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz

- name: Publish
run: poetry publish -vvv -n -u __token__ -p ${{ secrets.PYPI_PASS }}

0 comments on commit 56fd021

Please sign in to comment.