-
Notifications
You must be signed in to change notification settings - Fork 56
49 lines (45 loc) · 1.25 KB
/
latest.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
name: Release Status
on:
push:
branches:
- master
- 'release/**'
- 'hotfix/**'
jobs:
release:
name: Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 20.x
- uses: actions/cache@v3
id: cache
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('package.json') }}
- name: Install Dependencies
run: npm install --force
if: steps.cache.outputs.cache-hit != 'true'
env:
CI: true
- name: Install dmg-license
if: matrix.os == 'macOS-latest'
run: npm install dmg-license --force
- name: Build and Release
run: npm run release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EP_DRAFT: true