From 954431cba96cfc27af8e0093a5eadc458317f811 Mon Sep 17 00:00:00 2001 From: daler Date: Sat, 20 Apr 2024 14:05:00 -0400 Subject: [PATCH] add release workflows --- .github/workflows/pypi-release.yml | 18 ++++++++++++++++++ .../{release.yml => testpypi-release.yml} | 0 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/pypi-release.yml rename .github/workflows/{release.yml => testpypi-release.yml} (100%) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml new file mode 100644 index 0000000..a879944 --- /dev/null +++ b/.github/workflows/pypi-release.yml @@ -0,0 +1,18 @@ +on: workflow_dispatch +jobs: + publish-pypi: + name: Upload release to PyPI + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/trackhub + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Build + run: | + pip install build + python -m build --sdist + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/release.yml b/.github/workflows/testpypi-release.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/testpypi-release.yml