-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (36 loc) · 947 Bytes
/
cd.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
name: CD (commit on master)
on:
push:
branches:
- master
paths-ignore:
- '*.md'
jobs:
deploy:
runs-on: 'ubuntu-20.04'
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v2
with:
node-version: '16'
check-latest: true
cache: yarn
- uses: robinraju/[email protected]
with:
repository: italia/api-oas-checker-rules
fileName: '*'
out-file-path: rulesets/
latest: true
- name: Unzip files
run: |
for file in rulesets/*.zip; do
unzip -o "$file" -d rulesets/
done
- name: Build ui, test ui and deploy
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/italia/api-oas-checker.git
make deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}