|
@@ -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
|