From d77506a5e5aeda0acc0f7551199dce2e924d1782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20van=20Velzen?= Date: Tue, 29 Oct 2024 20:42:42 +0100 Subject: [PATCH] Move publish to own workflow file --- .github/workflows/build-and-test.yaml | 51 --------------------------- .github/workflows/publish.yaml | 24 +++++++++++++ 2 files changed, 24 insertions(+), 51 deletions(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index c656a100..91852e81 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -98,54 +98,3 @@ jobs: name: macos-wheel path: dist/*.whl - upload_ubuntu: - needs: build_and_test_ubuntu - runs-on: ubuntu-20.04 - if: github.event_name == 'workflow_dispatch' - - steps: - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.8" - - name: Download wheel artifact - uses: actions/download-artifact@v3 - with: - name: ubuntu-wheel - path: ./ - - name: Install Twine - run: | - pip install twine - - name: Upload to PyPI - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: python -m twine upload --repository pypi traceon-*.whl - - upload_windows: - needs: build_and_test_windows - runs-on: windows-latest - if: github.event_name == 'workflow_dispatch' - - steps: - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.8" - - name: Download wheel artifact - uses: actions/download-artifact@v3 - with: - name: windows-wheel - path: ./ - - name: Install Twine - run: | - pip install twine - - name: Upload to PyPI - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: python -m twine upload --repository pypi (get-item traceon-*.whl) - - - - diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..fc591f80 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,24 @@ +--- +name: Publish to Pypi +on: + workflow_dispatch: + +jobs: + publish_wheels: + runs-on: ubuntu-latest + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.8" + - name: Download wheel artifact + uses: actions/download-artifact@v3 + with: + path: ./ + merge-multiple: true + - name: List + run: | + ls *.whl + ls **/*.whl + + +