@@ -15,47 +15,47 @@ concurrency:
15
15
cancel-in-progress : false
16
16
17
17
jobs :
18
- build :
19
- name : Swagger autogen docs
20
- runs-on : ubuntu-latest
18
+ build :
19
+ name : Swagger autogen docs
20
+ runs-on : ubuntu-latest
21
21
22
- steps :
23
- - name : checkout
24
- uses : actions/checkout@v2
22
+ steps :
23
+ - name : checkout
24
+ uses : actions/checkout@v2
25
25
26
- - name : Set up Go
27
- uses : actions/setup-go@v3
28
- with :
29
- go-version : 1.21
30
- cache : true
26
+ - name : Set up Go
27
+ uses : actions/setup-go@v3
28
+ with :
29
+ go-version : 1.21
30
+ cache : true
31
31
32
- - name : install swag cli
33
- run : go install github.com/swaggo/swag/cmd/swag@latest
32
+ - name : install swag cli
33
+ run : go install github.com/swaggo/swag/cmd/swag@latest
34
34
35
- - name : swag init
36
- run : ./scripts/gen_swagger_json.sh
35
+ - name : swag init
36
+ run : ./scripts/gen_swagger_json.sh
37
37
38
38
deploy :
39
- if : ${{ always() }}
40
- needs : build
41
- environment :
42
- name : github-pages
43
- url : ${{ steps.deployment.outputs.page_url }}
44
- name : github pages deploy swagger docs
45
- runs-on : ubuntu-latest
46
-
47
- steps :
48
- - name : checkout
49
- uses : actions/checkout@v2
50
-
51
- - name : Setup Pages
52
- uses : actions/configure-pages@v3
53
-
54
- - name : Upload artifact
55
- uses : actions/upload-pages-artifact@v2
56
- with :
57
- path : ' . '
58
-
59
- - name : Deploy to GitHub Pages
60
- id : deployment
61
- uses : actions/deploy-pages@v2
39
+ if : ${{ always() }}
40
+ needs : build
41
+ environment :
42
+ name : github-pages
43
+ url : ${{ steps.deployment.outputs.page_url }}
44
+ name : github pages deploy swagger docs
45
+ runs-on : ubuntu-latest
46
+
47
+ steps :
48
+ - name : checkout
49
+ uses : actions/checkout@v2
50
+
51
+ - name : Setup Pages
52
+ uses : actions/configure-pages@v3
53
+
54
+ - name : Upload artifact
55
+ uses : actions/upload-pages-artifact@v2
56
+ with :
57
+ path : " . "
58
+
59
+ - name : Deploy to GitHub Pages
60
+ id : deployment
61
+ uses : actions/deploy-pages@v2
0 commit comments