-
Notifications
You must be signed in to change notification settings - Fork 36
52 lines (41 loc) · 1.17 KB
/
validate_and_build.yaml
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
name: "Validate JSON files and deploy to GitHub Pages"
on:
workflow_dispatch:
push:
branches:
- master
permissions:
contents: write
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
validate-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.17
- name: Install dependencies
working-directory: scripts
run: bun install
- name: Implode overrides
working-directory: scripts
run: bun run implodeOverrides
- name: Implode overrides
working-directory: scripts
run: bun run validate
- name: Validate schema
working-directory: scripts
run: bun run validate
- name: Update .gitignore
working-directory: scripts
run: echo '!overrides/*' >> .gitignore
- name: Push to gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .
clean: true