-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (47 loc) · 1.39 KB
/
release.yml
File metadata and controls
56 lines (47 loc) · 1.39 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
54
55
56
name: Build Release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: linux-build
build_script: dist:linux
- os: windows-latest
artifact_name: windows-build
build_script: dist:win
- os: macos-latest
artifact_name: macos-build
build_script: dist:mac
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build and publish release artifacts
env:
CSC_IDENTITY_AUTO_DISCOVERY: "false"
# electron-builder uploads each platform's installers to the tag's GitHub Release
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Baked into the packaged app so end-users get Groq for free out of the box
GROQ_KEY: ${{ secrets.GROQ_KEY }}
run: npm run ${{ matrix.build_script }}
- name: Upload build artifacts (CI backup)
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: dist/**
if-no-files-found: error