This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
Build Artifacts #34
This file contains 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-artifacts | |
run-name: Build Artifacts | |
on: workflow_dispatch | |
jobs: | |
build-artifacts: | |
name: Build ${{ matrix.os }} artifacts | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
- os: macos-latest | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.head_ref }}-${{ matrix.os }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
token: ${{ secrets.GH_PAT }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Build react app | |
run: | | |
cd react-app | |
yarn | |
yarn build | |
- name: Install electron dependencies | |
run: | | |
cd electron-app | |
yarn | |
- name: Build artifacts | |
run: | | |
cd electron-app | |
yarn make | |
- name: Retrive commit hash | |
uses: benjlevesque/[email protected] | |
id: short-sha | |
- name: Publish release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
tag: action-ci-${{ steps.short-sha.outputs.sha }} | |
repo_token: ${{ secrets.GH_PAT }} | |
file: electron-app/out/make/**/*.{exe,zip} | |
file_glob: true | |
release_name: CI - ${{ steps.short-sha.outputs.sha }} |