Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit 48220cc

Browse files
committed
format indent swagger.yml
1 parent 15cf108 commit 48220cc

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

.github/workflows/swagger.yml

+38-38
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,47 @@ concurrency:
1515
cancel-in-progress: false
1616

1717
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
2121

22-
steps:
23-
- name: checkout
24-
uses: actions/checkout@v2
22+
steps:
23+
- name: checkout
24+
uses: actions/checkout@v2
2525

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
3131

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
3434

35-
- name: swag init
36-
run: ./scripts/gen_swagger_json.sh
35+
- name: swag init
36+
run: ./scripts/gen_swagger_json.sh
3737

3838
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

Comments
 (0)