Skip to content

Commit b172e8e

Browse files
authored
Setup Release GitHub Action (#376)
* Setup release workflow * Pass GH Token & publish with onTagOrDraft
1 parent f8afb5b commit b172e8e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release App
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
8+
jobs:
9+
release-macos:
10+
runs-on: macos-10.15
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Get yarn cache
16+
id: yarn-cache
17+
run: echo "::set-output name=dir::$(yarn cache dir)"
18+
19+
- uses: actions/cache@v1
20+
with:
21+
path: ${{ steps.yarn-cache.outputs.dir }}
22+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-yarn-
25+
26+
- name: Install Dependencies
27+
run: yarn install
28+
29+
- name: Build
30+
run: yarn build
31+
32+
- name: Pack (electron-builder)
33+
run: yarn pack
34+
35+
- name: Publish macOS (electron-builder)
36+
env:
37+
CSC_LINK: ${{ secrets.mac_certs }}
38+
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
39+
GH_TOKEN: ${{ secrets.gh_token }}
40+
run: yarn electron-builder --publish onTagOrDraft

0 commit comments

Comments
 (0)