This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
105 lines (83 loc) · 2.64 KB
/
publish.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
101
102
103
104
105
name: Publish
on: [workflow_dispatch]
jobs:
# bump_version:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout git repo
# uses: actions/checkout@v1
# - name: 'Automated version bump'
# uses: 'phips28/gh-action-bump-version@master'
# env:
# PACKAGEJSON_DIR: 'release/app'
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# skip-tag: 'true'
publish_windows:
runs-on: windows-latest
# needs: bump_version
steps:
- name: Checkout git repo
uses: actions/checkout@v3
- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: |
npm install
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run postinstall
npm run build
npm exec electron-builder -- --publish always --win
publish_linux:
runs-on: ubuntu-latest
# needs: bump_version
steps:
- name: Checkout git repo
uses: actions/checkout@v3
- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: |
npm install
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run postinstall
npm run build
npm exec electron-builder -- --publish always --linux
# npm exec electron-builder -- --publish always --linux deb AppImage
# npm exec electron-builder -- --publish always --linux rpm -c.productName=EtherealEngineControlCenter
# publish_mac:
# runs-on: macos-latest
# needs: bump_version
# steps:
# - name: Checkout git repo
# uses: actions/checkout@v3
# - name: Install Node and NPM
# uses: actions/setup-node@v3
# with:
# node-version: 16.x
# - name: Install dependencies
# run: |
# npm install
# - name: Publish releases
# env:
# # These values are used for auto updates signing
# # APPLE_ID: ${{ secrets.APPLE_ID }}
# # APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
# # CSC_LINK: ${{ secrets.CSC_LINK }}
# # CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
# # This is used for uploading release assets to github
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# npm run postinstall
# npm run build
# npm exec electron-builder -- --publish always --mac