Skip to content

Commit

Permalink
Move publish to own workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-vv committed Oct 29, 2024
1 parent 67dc90e commit b82feff
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)




25 changes: 25 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Publish to Pypi
on:
workflow_dispatch:

jobs:
publish_wheels:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Download wheel artifact
uses: actions/download-artifact@v4
with:
path: ./
merge-multiple: true
- name: List
run: |
ls *.whl
ls **/*.whl

0 comments on commit b82feff

Please sign in to comment.