-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (46 loc) · 1.4 KB
/
create-neutralinojs-app.yml
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
name: Create Neutralino.js app
env:
# Unpublished drafts can be found at `github.com/<user>/<repo>/releases`
DRAFT: true
# Comment out a line (by prefixing it with `# `) to delete that binary and save a few MB.
# Note that comments are not syntactically supported: a script will handle the exclusion.
NEU_BUILD_TARGETS: |
"neutralino-linux_arm64"
"neutralino-linux_armhf"
"neutralino-linux_x64"
"neutralino-mac_arm64"
"neutralino-mac_universal"
"neutralino-mac_x64"
"neutralino-win_x64.exe"
on:
push:
tags: '*'
jobs:
build:
name: Creating Neutralino.js app
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
run: npm run setup
- name: Remove unused binaries
run: |
for file in $(echo "$NEU_BUILD_TARGETS" | sed -E 's/^# ?"//; s/"$//; t; d' | xargs -n1 echo); do
if [ -f bin/$file ]; then
rm bin/$file
fi
done
- name: Build Neutralino.js app
run: npm run build:release
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: './dist/*.zip,./dist/*.tar.gz'
draft: ${{ env.DRAFT }}