Skip to content

Commit

Permalink
Also publish sdist to PyPI (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 2, 2022
1 parent 94518c9 commit b9f1dea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ jobs:
run: |
python -m pip install build
python -m build
- name: Upload wheel as artifact
- name: Upload sdist and wheel artifacts
uses: actions/upload-artifact@v3
with:
name: my-wheel
path: dist/*.whl
name: my-dist
path: dist/*

test:
needs: build-wheel
Expand Down Expand Up @@ -91,14 +91,14 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r dev-requirements.txt
python -m pip install "sphinx${{ matrix.sphinx-version }}"
- name: Download wheel artifact
- name: Download sdist and wheel artifacts
uses: actions/download-artifact@v3
with:
name: my-wheel
name: my-dist
path: dist
- name: Install downloaded wheel
run: |
python -m pip install --no-index --find-links=dist sphinxext-opengraph
python -m pip install --only-binary=:all: --no-index --find-links=dist sphinxext-opengraph
- name: Run tests for ${{ matrix.python-version }}
run: |
python -m pytest -vv
Expand Down Expand Up @@ -128,10 +128,10 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.ref, 'refs/tags/') && github.repository_owner == 'wpilibsuite'
steps:
- name: Download wheel artifact
- name: Download sdist and wheel artifacts
uses: actions/download-artifact@v3
with:
name: my-wheel
name: my-dist
path: dist
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit b9f1dea

Please sign in to comment.