-
-
Notifications
You must be signed in to change notification settings - Fork 310
47 lines (45 loc) · 1.47 KB
/
release-choco.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
name: Choco release - TEST
on:
pull_request:
jobs:
electron:
strategy:
matrix:
os: [windows-latest]
node-version: [14.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn --cwd packages/altair-electron
# - uses: nick-invision/retry@v2
# with:
# timeout_minutes: 15
# max_attempts: 3
# command: yarn lerna bootstrap
- name: Build/release Electron app
uses: CryogenicPlanet/action-electron-builder@v2 # Using CryogenicPlanet until the main action adds skip_install
with:
github_token: ${{ secrets.github_token }}
package_root: packages/altair-electron/
skip_build: true
skip_install: true
args: '--publish never'
max_attempts: 3
- name: chocolatey pack
uses: crazy-max/ghaction-chocolatey@v1.6.0
with:
args: pack chocolatey\altair-graphql.nuspec
- run: dir
- name: chocolatey ...
uses: crazy-max/ghaction-chocolatey@v1.6.0
with:
args: install chocolatey\altair-graphql.4.0.11.nupkg
- name: chocolatey push
uses: crazy-max/ghaction-chocolatey@v1.6.0
with:
args: push chocolatey\altair-graphql.4.0.11.nupkg -s https://push.chocolatey.org/ -k="'123-123123-123'"