diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index c656a10..91852e8 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 0000000..fc591f8 --- /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 + + +