Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also publish sdist to PyPI #82

Merged
merged 1 commit into from Nov 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/workflow.yml
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