Build and Upload Release Assets #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |