From ccb30cd8a977a334dd4af3250f8a1d9ade6b128a Mon Sep 17 00:00:00 2001 From: Mike Hendricks Date: Thu, 21 Sep 2023 18:48:52 -0700 Subject: [PATCH] Update release action - Use new build command to create the pip package - Update the action versions to latest - Upload the wheel as a artifact for inspection --- .github/workflows/release.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b321e96..f713814 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,23 +11,31 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install --upgrade setuptools wheel twine + python -m pip install --upgrade build setuptools wheel twine - name: Build wheel run: | - python setup.py build bdist_wheel + python -m build --wheel + + # Upload the built .whl files so we can inspect them even if publish fails + - name: Upload wheel. + uses: actions/upload-artifact@v3 + with: + name: built-wheel + path: dist/hab_gui-*.whl + retention-days: 1 - name: Publish to PyPI env: