Skip to content

Commit

Permalink
ops: add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
kerberizer committed Nov 14, 2024
1 parent 6fc82bb commit f4d9ca6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Upload Python Package

on: # yamllint disable-line rule:truthy
release:
types: ['published']

permissions:
contents: read

jobs:

deploy:

runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyambit
permissions:
id-token: write

steps:

- name: Checkout the repository
uses: actions/[email protected]

- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/[email protected]

0 comments on commit f4d9ca6

Please sign in to comment.