File tree 1 file changed +29
-6
lines changed
1 file changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,43 @@ jobs:
22
22
timeout 300 sh -c 'until curl -s localhost:8080/v3/api-docs; do sleep 5; done'
23
23
env :
24
24
SPRING_PROFILES_ACTIVE : local
25
+ - name : Bundle OpenAPI specs
26
+ run : |
27
+ mkdir openapi
28
+ curl -sf localhost:8080/v3/api-docs -o openapi/api-docs.json
29
+ working-directory : .
30
+ - name : Deploy OpenAPI
31
+ uses : JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4.6.4
32
+ with :
33
+ folder : openapi
34
+ target-folder : openapi
25
35
- uses : ruby/setup-ruby@v1
26
36
with :
27
37
ruby-version : 3.1
28
38
bundler-cache : true
29
39
working-directory : tech-docs
30
- - name : Build
40
+ - name : Build Docs
31
41
run : |
32
42
gem install middleman
33
43
bundle exec middleman build --verbose
34
44
working-directory : tech-docs
35
- - name : Bundle OpenAPI specs
36
- run : |
37
- curl -sf localhost:8080/v3/api-docs -o api-docs.json
38
- working-directory : tech-docs/build
39
45
- uses : actions/upload-artifact@v4
40
46
with :
41
- path : tech-docs/build
47
+ name : documentation
48
+ path : tech-docs/build/
49
+
50
+ deploy :
51
+ runs-on : ubuntu-latest
52
+ if : github.ref_name == 'main' || (github.event_name == 'workflow_dispatch')
53
+ needs :
54
+ - build
55
+ steps :
56
+ - uses : actions/checkout@v4
57
+ - uses : actions/download-artifact@v4
58
+ with :
59
+ name : documentation
60
+ path : tech-docs-build
61
+ - name : Deploy
62
+ uses : JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4.6.4
63
+ with :
64
+ folder : tech-docs-build
You can’t perform that action at this time.
0 commit comments