This repository was archived by the owner on Aug 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +46
-47
lines changed
Expand file tree Collapse file tree 3 files changed +46
-47
lines changed Original file line number Diff line number Diff line change 1919 - uses : actions/setup-python@v4
2020 with :
2121 python-version : 3.12
22- - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2323 - uses : actions/cache@v3
2424 with :
2525 key : mkdocs-material-${{ env.cache_id }}
Original file line number Diff line number Diff line change 11name : Build and Deploy OpenAPI specification
22on :
3- push :
4- branches :
5- - main
6- workflow_dispatch :
3+ push :
4+ branches :
5+ - main
6+ workflow_dispatch :
77permissions :
88 contents : write
99jobs :
10- build_and_deploy :
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14- with :
15- fetch-depth : 0
16- - name : Configure git Credentials
17- run : |
18- git config user.name github-actions[bot]
19- git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20- - uses : actions/setup-node@v4
21- with :
22- node-version : " lts/*"
23- cache : " npm"
24- cache-dependency-path : " ./api/src/core/package-lock.json"
25- - name : Install TypeSpec and compile project
26- run : |
27- cd ./api/src/core/
28- npm install -g @typespec/compiler
29- npm install
30- tsp compile .
31- - name : Commit OpenAPI specification to repository
32- run : |
33- tree -L 2
34- mv ./api/src/core/tsp-output/@typespec/openapi3/openapi.v1.0-alpha .1.yaml ./api/build/core-openapi3.yaml
35- git add ./api/build/*
36- git commit -m "[bot]update openapi3 schema" || true
37- git push || true
10+ build_and_deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ with :
15+ fetch-depth : 0
16+ - name : Configure git Credentials
17+ run : |
18+ git config user.name github-actions[bot]
19+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20+ - uses : actions/setup-node@v4
21+ with :
22+ node-version : " lts/*"
23+ cache : " npm"
24+ cache-dependency-path : " ./api/src/core/package-lock.json"
25+ - name : Install TypeSpec and compile project
26+ run : |
27+ cd ./api/src/core/
28+ npm install -g @typespec/compiler
29+ npm install
30+ tsp compile .
31+ - name : Commit OpenAPI specification to repository
32+ run : |
33+ tree -L 2
34+ mv ./api/src/core/tsp-output/@typespec/openapi3/openapi.v1.0-beta .1.yaml ./api/build/core-openapi3.yaml
35+ git add ./api/build/*
36+ git commit -m "[bot]update openapi3 schema" || true
37+ git push || true
Original file line number Diff line number Diff line change @@ -5,26 +5,25 @@ name: Build mkdocs documentation
55
66on :
77 pull_request :
8- branches : [ "main" ]
8+ branches : ["main"]
99
1010permissions :
1111 contents : read
1212
1313jobs :
1414 build :
15-
1615 runs-on : ubuntu-latest
1716
1817 steps :
19- - uses : actions/checkout@v4
20- - name : Set up Python 3.10
21- uses : actions/setup-python@v3
22- with :
23- python-version : " 3.12"
24- - name : Install dependencies
25- run : |
26- python -m pip install --upgrade pip
27- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28- - name : Build with mkdocs
29- run : |
30- mkdocs build
18+ - uses : actions/checkout@v4
19+ - name : Set up Python 3.12
20+ uses : actions/setup-python@v3
21+ with :
22+ python-version : " 3.12"
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip
26+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+ - name : Build with mkdocs
28+ run : |
29+ mkdocs build
You can’t perform that action at this time.
0 commit comments