forked from kaygdev/octdata4python
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.04 KB
/
release.yml
File metadata and controls
44 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
on:
workflow_dispatch:
jobs:
linux:
uses: ./.github/workflows/linux.yml
windows:
uses: ./.github/workflows/windows.yml
release:
needs: [linux, windows]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Linux wheels
uses: actions/download-artifact@v4
with:
name: linux-wheels
path: wheelhouse
- name: Download Windows wheels
uses: actions/download-artifact@v4
with:
name: windows-wheels
path: wheelhouse
- name: Get latest commit hash
id: get_commit_hash
run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: wheelhouse/*.whl
draft: true
body: Built and released from orchestrator workflow.
tag_name: ${{ steps.get_commit_hash.outputs.hash }}