From beb9425137e65188db10570e96140ba560f2429c Mon Sep 17 00:00:00 2001 From: lilpacy Date: Thu, 27 Jun 2024 23:17:15 +0900 Subject: [PATCH] feat: github pages --- .github/workflows/docusaurus.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/docusaurus.yml diff --git a/.github/workflows/docusaurus.yml b/.github/workflows/docusaurus.yml new file mode 100644 index 0000000..87a4c97 --- /dev/null +++ b/.github/workflows/docusaurus.yml @@ -0,0 +1,30 @@ +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + # ビルドステップ + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: yarn + - name: Install dependencies + run: yarn install --frozen-lockfile --non-interactive + - name: Build + run: yarn build + # ビルドステップ + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # ビルド出力パスを指定 + path: build + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2