File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Linux Wheels
22
33on :
44 workflow_dispatch :
5+ workflow_call :
56
67jobs :
78 compose-job :
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ linux :
8+ uses : ./.github/workflows/linux.yml
9+
10+ windows :
11+ uses : ./.github/workflows/windows.yml
12+
13+ release :
14+ needs : [linux, windows]
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Download Linux wheels
21+ uses : actions/download-artifact@v4
22+ with :
23+ name : linux-wheels
24+ path : wheelhouse
25+
26+ - name : Download Windows wheels
27+ uses : actions/download-artifact@v4
28+ with :
29+ name : windows-wheels
30+ path : wheelhouse
31+
32+ - name : Get latest commit hash
33+ id : get_commit_hash
34+ run : echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
35+
36+ - name : Create GitHub Release
37+ uses : softprops/action-gh-release@v2
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ with :
41+ files : wheelhouse/*.whl
42+ draft : true
43+ body : Built and released from orchestrator workflow.
44+ tag_name : ${{ steps.get_commit_hash.outputs.hash }}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Windows Wheels
22
33on :
44 workflow_dispatch :
5+ workflow_call :
56
67jobs :
78 build :
You can’t perform that action at this time.
0 commit comments