Skip to content

Commit a90cf3e

Browse files
authored
Release django-stubs-ext before django-stubs (#2188)
1 parent 3902845 commit a90cf3e

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ on:
44
release:
55
types: [published]
66

7+
concurrency:
8+
group: release-${{ github.event.release.tag_name }}
9+
710
jobs:
8-
build-and-publish:
11+
build-and-publish-ext:
912
runs-on: ubuntu-latest
1013
environment:
11-
name: release
12-
url: https://pypi.org/p/django-stubs
14+
name: release-ext
15+
url: https://pypi.org/p/django-stubs-ext
1316
permissions:
1417
id-token: write
1518
steps:
@@ -22,16 +25,19 @@ jobs:
2225
- uses: actions/checkout@v4
2326
with:
2427
fetch-depth: 0
25-
- name: Build package
26-
run: python -m build
27-
- name: Publish to PyPI
28+
- name: Build ext package
29+
run: python -m build ext/
30+
- name: Publish ext to PyPI
2831
uses: pypa/[email protected]
32+
with:
33+
packages-dir: ext/dist/
2934

30-
build-and-publish-ext:
35+
build-and-publish:
3136
runs-on: ubuntu-latest
37+
needs: [build-and-publish-ext]
3238
environment:
33-
name: release-ext
34-
url: https://pypi.org/p/django-stubs-ext
39+
name: release
40+
url: https://pypi.org/p/django-stubs
3541
permissions:
3642
id-token: write
3743
steps:
@@ -44,9 +50,7 @@ jobs:
4450
- uses: actions/checkout@v4
4551
with:
4652
fetch-depth: 0
47-
- name: Build ext package
48-
run: python -m build ext/
49-
- name: Publish ext to PyPI
53+
- name: Build package
54+
run: python -m build
55+
- name: Publish to PyPI
5056
uses: pypa/[email protected]
51-
with:
52-
packages-dir: ext/dist/

0 commit comments

Comments
 (0)