Skip to content

Commit

Permalink
add publish gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
matejv committed Jul 24, 2023
1 parent 043eb25 commit 9db6acc
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Publish Python package to PyPI

on:
release:
types:
- published

jobs:
deploy:
runs-on: ubuntu-22.04
environment: release
permissions:
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'build[virtualenv]'
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 9db6acc

Please sign in to comment.