From db40a29ff6ee5bea4c802a4f7f096183f0279a4c Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Thu, 30 Nov 2023 15:08:25 -0600 Subject: [PATCH] cleanup working publish.yml and prepare for PR --- .github/workflows/publish.yml | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8cfab7c..b8457521 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,30 +1,15 @@ name: Wheel building and publishing -on: [push, pull_request, workflow_dispatch] +on: [push, pull_request, workflow_dispatch] # TODO: update this later jobs: - # may be useful to have a wheel building test here eventually (untested): - # test_wheel_building: - # # - # permissions: - # contents: none - # uses: someactionyml.yml #TODO: replace with wheel build action - # if: (github.event_name == 'push') # || github.event_name == 'pull_request') - # with: - # upload_to_pypi: false - # targets: | - # - cp311-manylinux_x86_64 - - # secrets: - # pypi_token: ${{ secrets.pypi_token }} # consider using alternate strategy - build_wheel: # This does the actual wheel building or if triggered manually via the workflow dispatch, or for a tag. # this job does NOT publish the wheel name: Build wheel on ubuntu-latest runs-on: ubuntu-latest - if: github.event_name == 'workflow_dispatch' - #if: (github.repository == 'gumyr/build123d' && ( startsWith(github.ref, 'refs/tags/v') || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Build wheel'))) + #if: github.event_name == 'workflow_dispatch' + if: (github.repository == 'gumyr/build123d' && ( startsWith(github.ref, 'refs/tags/v'))) || github.event_name == 'workflow_dispatch' steps: - uses: actions/checkout@v4 with: @@ -36,14 +21,13 @@ jobs: pwd ls -lR python3 -m pip install --upgrade pip - pip -V python3 -m pip -V - python3 -m pip freeze python3 -m pip wheel -w wheelhouse . + python3 -m pip freeze - uses: actions/upload-artifact@v3 with: - path: ./wheelhouse/*.whl + path: ./wheelhouse/build123d*.whl # only store the build123d wheel # Do we need sdist wheel? # build_sdist: