@@ -19,47 +19,47 @@ jobs:
1919
2020 # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
2121 permissions :
22- pages : write
23- id-token : write
22+ pages : write
23+ id-token : write
2424
2525 # Allow one concurrent deployment
2626 concurrency :
27- group : " pages"
28- cancel-in-progress : true
27+ group : ' pages'
28+ cancel-in-progress : true
2929
3030 # List of steps to execute in this job
3131 steps :
32- # Configure the GH pages environment
33- - name : Setup Pages
34- uses : actions/configure-pages@v5
32+ # Configure the GH pages environment
33+ - name : Setup Pages
34+ uses : actions/configure-pages@v5
3535
36- # Grab a copy of the latest binaries
37- - name : Download Latest Swagger UI Release
38- run : |
39- LATEST_URL=$(curl -sL https://api.github.com/repos/swagger-api/swagger-ui/releases/latest | grep "tarball_url" | cut -d '"' -f 4)
40- curl -L "$LATEST_URL" -o swagger-ui.tar.gz
36+ # Grab a copy of the latest binaries
37+ - name : Download Latest Swagger UI Release
38+ run : |
39+ LATEST_URL=$(curl -sL https://api.github.com/repos/swagger-api/swagger-ui/releases/latest | grep "tarball_url" | cut -d '"' -f 4)
40+ curl -L "$LATEST_URL" -o swagger-ui.tar.gz
4141
42- # Extract the downloaded archive
43- - name : Extract Swagger UI dist folder
44- run : |
45- mkdir swagger-ui
46- tar -xzf swagger-ui.tar.gz --strip-components=1 -C swagger-ui
42+ # Extract the downloaded archive
43+ - name : Extract Swagger UI dist folder
44+ run : |
45+ mkdir swagger-ui
46+ tar -xzf swagger-ui.tar.gz --strip-components=1 -C swagger-ui
4747
48- # Update the config to have the SHI Lab Specs
49- - name : Replace SwaggerUIBundle url with urls array in swagger-initializer.js
50- run : |
51- DIST_FILE="swagger-ui/dist/swagger-initializer.js"
52- # Remove the 'url:' property and insert the 'urls:' array
53- sed -i '/url: /c\ urls: [\n{\n"url": "https://raw.githubusercontent.com/Software-Hardware-Integration-Lab/OpenAPI/refs/heads/main/specs/Data-Gateway.json",\n"name": "Data Gateway"\n},\n{\n"url": "https://raw.githubusercontent.com/Software-Hardware-Integration-Lab/OpenAPI/refs/heads/main/specs/SHIELD.json",\n"name": "SHIELD"\n},\n{\n"url": "https://raw.githubusercontent.com/Software-Hardware-Integration-Lab/OpenAPI/refs/heads/main/specs/Url-Shortener.json",\n"name": "SHI - URL Shortener"\n}\n],' "$DIST_FILE"
48+ # Update the config to have the SHI Lab Specs
49+ - name : Replace SwaggerUIBundle url with urls array in swagger-initializer.js
50+ run : |
51+ DIST_FILE="swagger-ui/dist/swagger-initializer.js"
52+ # Remove the 'url:' property and insert the 'urls:' array
53+ sed -i '/url: /c\ urls: [\n{\n"url": "https://raw.githubusercontent.com/Software-Hardware-Integration-Lab/OpenAPI/refs/heads/main/specs/Data-Gateway.json",\n"name": "Data Gateway"\n},\n{\n"url": "https://raw.githubusercontent.com/Software-Hardware-Integration-Lab/OpenAPI/refs/heads/main/specs/SHIELD.json",\n"name": "SHIELD"\n},\n{\n"url": "https://raw.githubusercontent.com/Software-Hardware-Integration-Lab/OpenAPI/refs/heads/main/specs/Url-Shortener.json",\n"name": "SHI - URL Shortener"\n}\n],' "$DIST_FILE"
5454
55- # Uploads the built artifact to github pages
56- - name : Upload Artifact
57- uses : actions/upload-pages-artifact@v3
58- with :
59- # Upload static files
60- path : " swagger-ui/dist/"
55+ # Uploads the built artifact to github pages
56+ - name : Upload Artifact
57+ uses : actions/upload-pages-artifact@v4
58+ with :
59+ # Upload static files
60+ path : ' swagger-ui/dist/'
6161
62- # Deploy the compiled pages
63- - name : Deploy to GitHub Pages
64- id : deployment
65- uses : actions/deploy-pages@v4
62+ # Deploy the compiled pages
63+ - name : Deploy to GitHub Pages
64+ id : deployment
65+ uses : actions/deploy-pages@v4
0 commit comments