-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.yml
37 lines (35 loc) · 895 Bytes
/
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
name: Release __INSTANCE__
on:
workflow_run:
workflows: ['Build']
types:
- completed
branches:
- master
jobs:
release:
runs-on: ${{ matrix.os }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
os:
- windows-2019
- macos-10.15
instance:
- __INSTANCE__
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_sha}}
- uses: actions/setup-node@v2
with:
node-version: '10.15.3'
- name: Install dependencies
run: yarn install --ignore-engines --network-timeout 1000000
- name: Post-install
run: yarn postinstall
- name: Release
run: node release.js
env:
INSTANCE: ${{ matrix.instance }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}