-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (96 loc) · 3.39 KB
/
package_release.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Package and Deploy
on:
release:
types: [published]
jobs:
build-and-deploy-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Set up Node.js
- uses: actions/setup-node@v1
with:
node-version: '18.x'
# Install dependencies
- name: Install Dependencies
run: npm install
# Build the project
- name: Package for Linux
run: npm run electron:package:linux
# Rename the release artifact
- name: Rename Artifact
run: mv dist/frame-cast_*.deb dist/FrameCast.Setup.linux_amd64.deb
# Upload the release artifact
- name: Upload Artifacts
uses: softprops/action-gh-release@v2
with:
files: |
dist/FrameCast.Setup.linux_amd64.deb
build-and-deploy-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# Set up Node.js
- uses: actions/setup-node@v1
with:
node-version: '18.x'
# Install dependencies
- name: Install Dependencies
run: npm install
# Build the project
- name: Package for Windows
run: npm run electron:package:win
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Rename artifacts
- name: Rename Artifact Executable
run: mv "dist/FrameCast Setup *.exe" "dist/FrameCast.Setup.windows_amd64.exe"
- name: Rename Artifact Executable Blockmap
run: mv "dist/FrameCast Setup *.exe.blockmap" "dist/FrameCast.Setup.windows_amd64.exe.blockmap"
# Upload the release artifact
- name: Upload Artifacts
uses: softprops/action-gh-release@v2
with:
files: |
dist/FrameCast.Setup.windows_amd64.exe
dist/FrameCast.Setup.windows_amd64.exe.blockmap
build-and-deploy-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# Set up Node.js
- uses: actions/setup-node@v1
with:
node-version: '18.x'
# Install dependencies
- name: Install Dependencies
run: npm install
# Build the project
- name: Package for MacOS (x64)
run: npm run electron:package:mac:x64
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Rename the release artifact
- name: Rename Artifact
run: mv dist/FrameCast-*.dmg dist/FrameCast.Setup.darwin_x64.dmg
- name: Rename Artifact Blockmap
run: mv dist/FrameCast-*.dmg.blockmap dist/FrameCast.Setup.darwin_x64.dmg.blockmap
# Build the project
- name: Package for MacOS (arm64)
run: npm run electron:package:mac:arm64
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Rename the release artifact
- name: Rename Artifact
run: mv dist/FrameCast-*.dmg dist/FrameCast.Setup.darwin_arm64.dmg
- name: Rename Artifact Blockmap
run: mv dist/FrameCast-*.dmg.blockmap dist/FrameCast.Setup.darwin_arm64.dmg.blockmap
# Upload the release artifact
- name: Upload Artifacts
uses: softprops/action-gh-release@v2
with:
files: |
dist/FrameCast.Setup.darwin_x64.dmg
dist/FrameCast.Setup.darwin_x64.dmg.blockmap
dist/FrameCast.Setup.darwin_arm64.dmg
dist/FrameCast.Setup.darwin_arm64.dmg.blockmap