Skip to content

Commit b9f1dea

Browse files
authored
Also publish sdist to PyPI (#82)
1 parent 94518c9 commit b9f1dea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/workflow.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
run: |
5757
python -m pip install build
5858
python -m build
59-
- name: Upload wheel as artifact
59+
- name: Upload sdist and wheel artifacts
6060
uses: actions/upload-artifact@v3
6161
with:
62-
name: my-wheel
63-
path: dist/*.whl
62+
name: my-dist
63+
path: dist/*
6464

6565
test:
6666
needs: build-wheel
@@ -91,14 +91,14 @@ jobs:
9191
python -m pip install --upgrade pip setuptools wheel
9292
python -m pip install -r dev-requirements.txt
9393
python -m pip install "sphinx${{ matrix.sphinx-version }}"
94-
- name: Download wheel artifact
94+
- name: Download sdist and wheel artifacts
9595
uses: actions/download-artifact@v3
9696
with:
97-
name: my-wheel
97+
name: my-dist
9898
path: dist
9999
- name: Install downloaded wheel
100100
run: |
101-
python -m pip install --no-index --find-links=dist sphinxext-opengraph
101+
python -m pip install --only-binary=:all: --no-index --find-links=dist sphinxext-opengraph
102102
- name: Run tests for ${{ matrix.python-version }}
103103
run: |
104104
python -m pytest -vv
@@ -128,10 +128,10 @@ jobs:
128128
runs-on: ubuntu-latest
129129
if: contains(github.ref, 'refs/tags/') && github.repository_owner == 'wpilibsuite'
130130
steps:
131-
- name: Download wheel artifact
131+
- name: Download sdist and wheel artifacts
132132
uses: actions/download-artifact@v3
133133
with:
134-
name: my-wheel
134+
name: my-dist
135135
path: dist
136136
- name: Publish a Python distribution to PyPI
137137
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)