Skip to content

Commit 2bd4d68

Browse files
committed
Add release workflow
1 parent 14106e0 commit 2bd4d68

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Linux Wheels
22

33
on:
44
workflow_dispatch:
5+
workflow_call:
56

67
jobs:
78
compose-job:

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 }}

.github/workflows/windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Windows Wheels
22

33
on:
44
workflow_dispatch:
5+
workflow_call:
56

67
jobs:
78
build:

0 commit comments

Comments
 (0)