-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (46 loc) · 1.31 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
name: Push SASjs Deployment Assets
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
env:
CI: true
- name: Check code style
run: npm run lint
- name: Build Project
run: npm run build
- name: create SAS 9 EBI build and Add to Release
run: |
npx sasjs cb -t sas9
mkdir ./artefacts
cp ./sasjsbuild/sas9.sas ./artefacts/sas9.sas
- name: create Viya build and Add to Release
run: |
npx sasjs cb -t viya
cp ./sasjsbuild/viya.sas ./artefacts/viya.sas
- name: create SASjs build and Add to Release
run: |
npx sasjs cb -t server
cp ./sasjsbuild/server.json.zip ./artefacts/server.json.zip
- name: Install Semantic Release and plugins
run: |
npm i
npm i -g semantic-release
- name: Release
run: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} semantic-release