ソースを参照

FIX: reconfigured github pages

Naz 3 ヶ月 前
コミット
044b707ef7
1 ファイル変更28 行追加9 行削除
  1. 28 9
      .github/workflows/static.yml

+ 28 - 9
.github/workflows/static.yml

@@ -22,22 +22,41 @@ concurrency:
   cancel-in-progress: false
 
 jobs:
-  # Single deploy job since we're just deploying
-  deploy:
-    environment:
-      name: github-pages
-      url: ${{ steps.deployment.outputs.page_url }}
+  build_site:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
         uses: actions/checkout@v4
-      - name: Setup Pages
-        uses: actions/configure-pages@v5
-      - name: Upload artifact
+
+      - name: Install Bun
+        run: |
+          curl -fsSL https://bun.sh/install | bash
+          echo 'export PATH="$HOME/.bun/bin:$PATH"' >> $GITHUB_ENV
+
+      - name: Install dependencies
+        run: bun install
+
+      - name: build
+        env:
+          BASE_PATH: '/${{ github.event.repository.name }}'
+          run: |
+            bun run build
+
+      - name: Upload Artifacts
         uses: actions/upload-pages-artifact@v3
         with:
-          # Upload entire repository
+          # this should match the `pages` option in your adapter-static options
           path: 'build/'
+
+  deploy:
+    needs: build_site
+    runs-on: ubuntu-latest
+
+    environment:
+      name: github-pages
+      url: ${{ steps.deployment.outputs.page_url }}
+
+    steps:
       - name: Deploy to GitHub Pages
         id: deployment
         uses: actions/deploy-pages@v4