Skip to content

Commit

Permalink
Add a Github action that publishes the package to Pypi when a new rel…
Browse files Browse the repository at this point in the history
…ease is created (#16)
  • Loading branch information
shaiarmis authored Jan 28, 2025
1 parent 007ce96 commit a6af89e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Based on https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
name: Publish to PyPI

on:
release:
types:
- published

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/armis_sdk
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- uses: ./.github/workflows/install_deps

- name: Build
run: poetry build

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

0 comments on commit a6af89e

Please sign in to comment.