Skip to content

Commit

Permalink
Create publish.yml workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko authored Nov 20, 2024
1 parent 9d48b0c commit 70b146a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to PyPI

on:
release:
types: [published]
workflow_dispatch:
inputs:

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install setuptools wheel build
- name: Build
run: |
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 70b146a

Please sign in to comment.