From 401f732c0b0854cbede8fb5f2947fd9b23e97284 Mon Sep 17 00:00:00 2001 From: Anand J Date: Mon, 14 Oct 2024 00:11:04 -0400 Subject: [PATCH] Create publish.yml --- .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b734509 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,35 @@ +name: publish + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v3 + - name: setup-python + uses: actions/setup-python@v3 + with: + python-version: "3.11" + architecture: "x64" + - name: install pypa/build + run: >- + python -m + pip install + build + --user + - name: build sdist(tarball) and bdist(wheel) to dist/ + run: >- # = python -m build . works the same way by default + python -m + build + --sdist + --wheel + --outdir dist/ + - name: publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://upload.pypi.org/legacy/