From 517b7de3ac8dc6892b10e72d0607bc9511fdd907 Mon Sep 17 00:00:00 2001 From: scivision Date: Thu, 19 Dec 2024 17:23:11 -0500 Subject: [PATCH] CI publish --- .github/workflows/publish-python-package.yml | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish-python-package.yml diff --git a/.github/workflows/publish-python-package.yml b/.github/workflows/publish-python-package.yml new file mode 100644 index 0000000..6d2efe5 --- /dev/null +++ b/.github/workflows/publish-python-package.yml @@ -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