File tree Expand file tree Collapse file tree 3 files changed +34
-37
lines changed Expand file tree Collapse file tree 3 files changed +34
-37
lines changed Original file line number Diff line number Diff line change 1515 runs-on : ubuntu-latest
1616 container : node:20
1717 steps :
18- - uses : actions/checkout@v3
19- - name : Clone aep.dev
20- uses : actions/checkout@v3
21- with :
22- repository : aep-dev/aeps
23- path : " ./aeps"
24- - name : Clone Proto linter
25- uses : actions/checkout@v3
26- with :
27- repository : aep-dev/api-linter
28- path : " ./api-linter"
29- - name : Install all dependencies.
30- run : npm install
31- - name : Install playwright with chromium
32- run : npx playwright install --with-deps chromium
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
3320 - name : Generate all static pages.
34- run : AEP_LOCATION=./aeps AEP_LINTER_LOC=./api-linter npm run generate
21+ run : ./scripts/build.sh
3522 - name : Install, build, and upload your site output
3623 uses : withastro/action@v2
Original file line number Diff line number Diff line change @@ -17,28 +17,10 @@ jobs:
1717 runs-on : ubuntu-latest
1818 container : node:20
1919 steps :
20- - uses : actions/checkout@v3
21- - name : Clone aep.dev
22- uses : actions/checkout@v3
23- with :
24- repository : aep-dev/aep.dev
25- path : " ./aep-dev"
26- - name : Clone Proto linter
27- uses : actions/checkout@v3
28- with :
29- repository : aep-dev/api-linter
30- path : " ./api-linter"
31- - name : Clone AEP Components
32- uses : actions/checkout@v3
33- with :
34- repository : aep-dev/aep-components
35- path : " ./aep-components"
36- - name : Install all dependencies.
37- run : npm install
38- - name : Install playwright with chromium
39- run : npx playwright install --with-deps chromium
20+ - name : Checkout repository
21+ uses : actions/checkout@v4
4022 - name : Generate all static pages.
41- run : AEP_LOCATION=./aep-dev AEP_LINTER_LOC=./api-linter AEP_COMPONENTS_LOC=./aep-components npm run generate
23+ run : ./scripts/build.sh
4224 - name : Install, build, and upload your site output
4325 uses : withastro/action@v2
4426 deploy :
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -x
3+ export SG_DIRECTOR=" ${PWD} "
4+ export AEP_LOCATION=" /tmp/aeps"
5+ export AEP_LINTER_LOC=" /tmp/api-linter"
6+ export AEP_OPENAPI_LINTER_LOC=" /tmp/aep-openapi-linter"
7+ export AEP_COMPONENTS_LOC=" /tmp/aep-components"
8+
9+ if [ ! -d " ${AEP_LOCATION} " ]; then
10+ git clone https://github.com/aep-dev/aeps.git " ${AEP_LOCATION} "
11+ fi
12+
13+ if [ ! -d " ${AEP_LINTER_LOC} " ]; then
14+ git clone https://github.com/aep-dev/api-linter.git " ${AEP_LINTER_LOC} "
15+ fi
16+
17+ if [ ! -d " ${AEP_OPENAPI_LINTER_LOC} " ]; then
18+ git clone https://github.com/aep-dev/aep-openapi-linter.git " ${AEP_OPENAPI_LINTER_LOC} "
19+ fi
20+
21+ if [ ! -d " ${AEP_COMPONENTS} " ]; then
22+ git clone https://github.com/aep-dev/aep-components.git " ${AEP_COMPONENTS_LOC} "
23+ fi
24+
25+ npm install
26+ npx playwright install --with-deps chromium
27+ npm run generate
28+ npm run build
You can’t perform that action at this time.
0 commit comments