-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.34 KB
/
build.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
name: Build Catalog
on:
push:
branches:
- master
workflow_dispatch: ~
permissions:
contents: write
jobs:
tests:
runs-on: ubuntu-latest
steps:
- # Copies the repository files to the Action Runner
name: Checkout Repository
uses: actions/[email protected]
-
name: Install Node.js
uses: actions/[email protected]
with:
node-version: 20.17
- # Upload Async API files to storage
name: Move Async API files to Catalog
run: |
cp account-service/asyncapi.yaml catalog/asyncapi/account-service.yaml
cp payment-service/asyncapi.yaml catalog/asyncapi/payment-service.yaml
- # Generate Catalog from Async API files
name: Install Dependencies
run: cd catalog && npm install
- # Generate Catalog from Async API files
name: Generate Catalog
run: cd catalog && npm run generate
-
name: Build Production Catalog
run: cd catalog && npm run build
-
name: Add .nojekyll file to catalog
run: cd catalog/out/ && touch .nojekyll
-
name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: catalog/out/ # The folder the action should deploy.
branch: website # The branch the action should deploy.