Skip to content

Commit

Permalink
Workflow for deploying to pypi (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
orting committed Feb 5, 2024
1 parent 26053f8 commit ed99edd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: deploy-to-pypi

on:
push:
branches:
- main

jobs:
pypi-publish:
name: Upload release to PyPi
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: build dependencies
run: python -m pip install -U build

- name: build
run: python -m build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit ed99edd

Please sign in to comment.