-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.69 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (57 loc) · 1.69 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
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build & Release
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v1.0.0) — must already exist'
required: true
permissions:
contents: write
jobs:
build:
name: Build – ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: macOS (Apple Silicon)
os: macos-latest
artifact: out/make/**/*.zip
- name: Windows x64
os: windows-latest
artifact: out/make/squirrel.windows/**/*.exe
- name: Linux x64
os: ubuntu-latest
artifact: out/make/**/*.{deb,rpm}
apt_deps: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Linux build dependencies
if: matrix.apt_deps
run: |
sudo apt-get update
sudo apt-get install -y rpm fakeroot dpkg
- name: Install dependencies
run: npm ci
- name: Build distributables
run: npm run make
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
generate_release_notes: true
fail_on_unmatched_files: true
files: ${{ matrix.artifact }}
body: |
> **macOS users:** if you see *"the app is damaged and can't be opened"*, run this once in Terminal after moving the app to Applications:
> ```
> xattr -cr /Applications/dginxNotes.app
> ```