-
Notifications
You must be signed in to change notification settings - Fork 8
82 lines (76 loc) · 2.8 KB
/
release.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Release app
on:
workflow_dispatch:
push:
branches:
- main
- dev
jobs:
release-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Version Env Var
run: echo "WOURNAL_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
- name: Test Print Version
run: echo "Wournal Version is $WOURNAL_VERSION"
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- name: Make Portable Release
env:
PKG_PORTABLE: true
run: npm run make -- --targets=zip
- name: Make AppImage Release
run: npm run make -- --targets=AppImage
- name: Upload Artifacts (Release Artifacts)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/util-scripts/upload-artifacts.js
- name: Upload Artifacts [linux-portable] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-GNU-Linux-Portable-${{env.WOURNAL_VERSION}}.zip
path: out/make/zip/linux/x64/Wournal-linux-x64-${{env.WOURNAL_VERSION}}.zip
- name: Upload Artifacts [linux-appimage] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-GNU-Linux-${{env.WOURNAL_VERSION}}.AppImage
path: out/make/AppImage/x64/Wournal-${{env.WOURNAL_VERSION}}-x64.AppImage
release-windows:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Version Env Var
run: echo "WOURNAL_VERSION=$((Get-Content package.json | ConvertFrom-Json).version)" >> $env:GITHUB_ENV
- name: Test Print Version
run: echo "Wournal Version is $env:WOURNAL_VERSION"
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- name: Make Portable Release
env:
PKG_PORTABLE: true
run: npm run make -- --targets=zip
- name: Make NSIS Release
run: npm run make -- --targets=nsis
- name: Upload Artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/util-scripts/upload-artifacts.js
- name: Upload Artifacts [windows-portable] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-Windows-Portable-${{env.WOURNAL_VERSION}}.zip
path: out/make/zip/win32/x64/Wournal-win32-x64-${{env.WOURNAL_VERSION}}.zip
- name: Upload Artifacts [windows-setup] (Actions Artifacts)
uses: actions/upload-artifact@v4
with:
name: Wournal-Windows-Setup-${{env.WOURNAL_VERSION}}.exe
path: out/make/nsis/x64/Wournal Setup ${{env.WOURNAL_VERSION}}.exe