Skip to content

Commit 24f4205

Browse files
authored
Merge branch 'master' into improve-asgi-error-docs
2 parents 346e466 + 8d03fb5 commit 24f4205

File tree

1 file changed

+48
-50
lines changed

1 file changed

+48
-50
lines changed

.github/workflows/cibuildwheel.yaml

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,54 @@ jobs:
5252
name: cibw-sdist
5353
path: dist/falcon-*
5454

55+
publish-sdist:
56+
name: publish-sdist
57+
needs:
58+
- build-sdist
59+
runs-on: ubuntu-latest
60+
61+
steps:
62+
- name: Checkout repository
63+
uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 2
66+
67+
- name: Set up Python
68+
uses: actions/setup-python@v5
69+
with:
70+
python-version: "3.12"
71+
72+
- name: Download artifacts
73+
uses: actions/download-artifact@v4
74+
with:
75+
pattern: cibw-sdist
76+
path: dist
77+
merge-multiple: true
78+
79+
- name: Check collected artifacts
80+
run: |
81+
tools/check_dist.py ${{ github.event_name == 'release' && format('-r {0}', github.ref) || '' }}
82+
83+
- name: Upload sdist to release
84+
uses: AButler/upload-release-assets@v3.0
85+
if: github.event_name == 'release'
86+
with:
87+
repo-token: ${{ secrets.GITHUB_TOKEN }}
88+
files: 'dist/*.tar.gz'
89+
90+
- name: Publish sdist and pure-Python wheel to TestPyPI
91+
uses: pypa/gh-action-pypi-publish@release/v1
92+
if: github.event_name == 'workflow_dispatch'
93+
with:
94+
password: ${{ secrets.TEST_PYPI_TOKEN }}
95+
repository-url: https://test.pypi.org/legacy/
96+
97+
- name: Publish sdist and pure-Python wheel to PyPI
98+
uses: pypa/gh-action-pypi-publish@release/v1
99+
if: github.event_name == 'release'
100+
with:
101+
password: ${{ secrets.PYPI_TOKEN }}
102+
55103
build-wheels:
56104
name: ${{ matrix.python }}-${{ matrix.platform.name }}
57105
needs: build-sdist
@@ -123,59 +171,9 @@ jobs:
123171
name: cibw-wheel-${{ matrix.python }}-${{ matrix.platform.name }}
124172
path: wheelhouse/falcon-*.whl
125173

126-
publish-sdist:
127-
name: publish-sdist
128-
needs:
129-
- build-sdist
130-
- build-wheels
131-
runs-on: ubuntu-latest
132-
133-
steps:
134-
- name: Checkout repository
135-
uses: actions/checkout@v4
136-
with:
137-
fetch-depth: 2
138-
139-
- name: Set up Python
140-
uses: actions/setup-python@v5
141-
with:
142-
python-version: "3.12"
143-
144-
- name: Download artifacts
145-
uses: actions/download-artifact@v4
146-
with:
147-
pattern: cibw-sdist
148-
path: dist
149-
merge-multiple: true
150-
151-
- name: Check collected artifacts
152-
run: |
153-
tools/check_dist.py ${{ github.event_name == 'release' && format('-r {0}', github.ref) || '' }}
154-
155-
- name: Upload sdist to release
156-
uses: AButler/upload-release-assets@v3.0
157-
if: github.event_name == 'release'
158-
with:
159-
repo-token: ${{ secrets.GITHUB_TOKEN }}
160-
files: 'dist/*.tar.gz'
161-
162-
- name: Publish sdist and pure-Python wheel to TestPyPI
163-
uses: pypa/gh-action-pypi-publish@release/v1
164-
if: github.event_name == 'workflow_dispatch'
165-
with:
166-
password: ${{ secrets.TEST_PYPI_TOKEN }}
167-
repository-url: https://test.pypi.org/legacy/
168-
169-
- name: Publish sdist and pure-Python wheel to PyPI
170-
uses: pypa/gh-action-pypi-publish@release/v1
171-
if: github.event_name == 'release'
172-
with:
173-
password: ${{ secrets.PYPI_TOKEN }}
174-
175174
publish-wheels:
176175
name: publish-wheels
177176
needs:
178-
- build-sdist
179177
- build-wheels
180178
- publish-sdist
181179
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)