-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (50 loc) · 1.2 KB
/
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
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
name: Relase distribution
on:
push:
branches:
- '**'
delete:
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Compile
run: yarn ttsc
- name: Release
uses: './.'
with:
push-branch: release-{branch}
js-override-main: main.ts
rebuild:
runs-on: ubuntu-latest
needs: [build_and_push]
steps:
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Checkout
uses: actions/checkout@v2
- name: Extract
id: extract
run: |
echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
- name: Checkout pre-built
uses: actions/checkout@v2
with:
ref: release-${{ steps.extract.outputs.branch }}
path: prebuilt
- name: Release
uses: './prebuilt'
if: github.event_name != 'delete'
with:
push-branch: release-{branch}
js-override-main: main.ts