From 49bbcaab93df81132ef4e556e853929e83095119 Mon Sep 17 00:00:00 2001 From: Gordon Shotwell Date: Tue, 19 Dec 2023 13:23:02 -0400 Subject: [PATCH] Build package --- .github/workflows/publish.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 97a8c82..c3b0297 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,9 +8,23 @@ jobs: name: upload release to PyPI runs-on: ubuntu-latest permissions: - # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: - # retrieve your distributions here + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + + - name: Build Python package + run: python setup.py sdist bdist_wheel + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1