-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.25 KB
/
Copy pathrelease.yml
File metadata and controls
53 lines (42 loc) · 1.25 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
45
46
47
48
49
50
51
52
53
name: Build and Upload Release Assets
on:
workflow_call:
release:
types: [ created ]
permissions:
contents: write
jobs:
build-jlink:
uses: ./.github/workflows/jlink_image_windows.yml
build-native:
uses: ./.github/workflows/graalvm_native_image_windows.yml
upload-to-release:
needs: [ build-jlink, build-native ]
runs-on: ubuntu-latest
steps:
- name: Download Jlink artifact
uses: actions/download-artifact@v8
with:
name: NitroSense-Jlink-Windows
path: jlink-build
- name: Download native Artifact
uses: actions/download-artifact@v8
with:
name: NitroSense-Native-Windows
path: native-build
- name: Prepare Release Zips
run: |
cd jlink-build
zip -r ../NitroSense-Jlink-Windows.zip .
cd ..
cd native-build
zip -r ../NitroSense-Native-Windows.zip .
cd ..
- name: Upload Assets to GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload "${{ github.event.release.tag_name }}" \
NitroSense-Jlink-Windows.zip \
NitroSense-Native-Windows.zip \
--repo ${{ github.repository }}