From f9cded1cabcabdb2b2113ec3c69ba0c15416d46f Mon Sep 17 00:00:00 2001 From: Arata Date: Sat, 8 Feb 2025 04:40:07 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20API=E3=83=89=E3=82=AD=E3=83=A5=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=82=92GitHub=20Pages=E3=81=AB=E3=83=87?= =?UTF-8?q?=E3=83=97=E3=83=AD=E3=82=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 70e27cb..6828bce 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,26 +1,19 @@ -# This GitHub Actions workflow was auto-generated by the `rdme` cli on 2023-10-13T13:20:58.425Z -# You can view our full documentation here: https://docs.readme.com/docs/rdme -name: ReadMe GitHub Action 🦉 +name: Generate API documentation on: push: branches: - # This workflow will run every time you push code to the following branch: `main` - # Check out GitHub's docs for more info on configuring this: - # https://docs.github.com/actions/using-workflows/events-that-trigger-workflows - main - paths: - - "schema.yml" + - feature/gen-api-doc workflow_dispatch: jobs: - rdme-openapi: + generate: runs-on: ubuntu-latest steps: - - name: Check out repo 📚 - uses: actions/checkout@v4 - - - name: Run `openapi` command 🚀 - uses: readmeio/rdme@v10 + - uses: actions/checkout@v4 + - run: npx -y @redocly/cli build-docs schema.yml -o public/redocly-static.html + - uses: peaceiris/actions-gh-pages@v4 with: - rdme: openapi schema.yml --key=${{ secrets.README_API_KEY }} --id=${{ vars.README_ID }} + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public