File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Swagger UI
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : false
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Set up Node.js
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : " 24"
25+ - name : Install dependencies
26+ run : npm install
27+ - name : Build Swagger UI assets
28+ run : npm run build
29+ - name : Upload artifact
30+ uses : actions/upload-pages-artifact@v3
31+ with :
32+ path : ./docs
33+ deploy :
34+ environment :
35+ name : github-pages
36+ url : ${{ steps.deployment.outputs.page_url }}
37+ runs-on : ubuntu-latest
38+ needs : build
39+ steps :
40+ - name : Deploy to GitHub Pages
41+ id : deployment
42+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " rgb-lightning-node-docs" ,
3+ "version" : " 0.1.0" ,
4+ "description" : " API documentation for RGB Lightning Node" ,
5+ "scripts" : {
6+ "build" : " mkdir -p docs && cp -r node_modules/swagger-ui-dist/* docs/ && cp openapi.yaml docs/ && sed -i 's|https://petstore.swagger.io/v2/swagger.json|./openapi.yaml|g' docs/swagger-initializer.js"
7+ },
8+ "dependencies" : {
9+ "swagger-ui-dist" : " ^5.31.0"
10+ },
11+ "devDependencies" : {},
12+ "private" : true
13+ }
You can’t perform that action at this time.
0 commit comments