Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jun 11, 2024
1 parent 9560b9b commit 25b71b0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish-python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# https://docs.pypi.org/trusted-publishers/using-a-publisher/

name: publish

on:
release:
types: [published]

jobs:
release:

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.x'

- name: Install builder
run: pip install build

- name: Build package
run: python -m build

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

0 comments on commit 25b71b0

Please sign in to comment.