From 48220ccdd5c0552273e6d25cf58d7f55e0ceaeb2 Mon Sep 17 00:00:00 2001 From: cuma Date: Wed, 8 May 2024 22:41:39 +0900 Subject: [PATCH] format indent swagger.yml --- .github/workflows/swagger.yml | 76 +++++++++++++++++------------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index 3f459f915..551ff45d4 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -15,47 +15,47 @@ concurrency: cancel-in-progress: false jobs: - build: - name: Swagger autogen docs - runs-on: ubuntu-latest + build: + name: Swagger autogen docs + runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v2 + steps: + - name: checkout + uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.21 - cache: true + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + cache: true - - name: install swag cli - run: go install github.com/swaggo/swag/cmd/swag@latest + - name: install swag cli + run: go install github.com/swaggo/swag/cmd/swag@latest - - name: swag init - run: ./scripts/gen_swagger_json.sh + - name: swag init + run: ./scripts/gen_swagger_json.sh deploy: - if: ${{ always() }} - needs: build - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - name: github pages deploy swagger docs - runs-on: ubuntu-latest - - steps: - - name: checkout - uses: actions/checkout@v2 - - - name: Setup Pages - uses: actions/configure-pages@v3 - - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: '.' - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + if: ${{ always() }} + needs: build + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + name: github pages deploy swagger docs + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: "." + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2