File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ jobs:
3131 run : composer install --no-interaction --prefer-dist
3232
3333 - name : Generate OpenAPI Specification JSON
34- run : vendor/bin/openapi -o latest-restapi.json --format json src
34+ run : vendor/bin/openapi -o docs/ latest-restapi.json --format json src
3535
3636 - name : Upload REST API Specification
3737 uses : actions/upload-artifact@v4
3838 with :
3939 name : restapi-json
40- path : latest-restapi.json
40+ path : docs/ latest-restapi.json
4141
4242 deploy-docs :
4343 name : Deploy REST API Specification
@@ -66,10 +66,10 @@ jobs:
6666 path : docs
6767
6868 - name : Validate OpenAPI Specification
69- run : swagger-cli validate latest-restapi.json
69+ run : swagger-cli validate docs/ latest-restapi.json
7070
7171 - name : Compare Specifications
72- run : git diff --no-index --output=restapi-diff.txt latest-restapi.json restapi.json || true
72+ run : git diff --no-index --output=restapi-diff.txt docs/ latest-restapi.json restapi.json || true
7373
7474 - name : Check Differences and Decide Deployment
7575 id : allow-deploy
8585 - name : Commit and Deploy Updates
8686 if : env.DEPLOY == 'true'
8787 run : |
88- mv latest-restapi.json restapi.json
88+ mv docs/ latest-restapi.json restapi.json
8989 git config user.name "github-actions"
9090 git config user.email "github-actions@restapi-docs.workflow"
9191 git add restapi.json
You can’t perform that action at this time.
0 commit comments