From aad9ff167de8ff7fd63de4717808dde03a0e4784 Mon Sep 17 00:00:00 2001 From: Amine Date: Thu, 7 Nov 2024 21:41:38 -0800 Subject: [PATCH] Fix docs deployment github action --- .github/workflows/deploy-docs.yaml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index 05fbdf99..986177f4 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -4,8 +4,6 @@ on: push: branches: - main - paths: - - "website/**" jobs: build: @@ -18,15 +16,15 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: oven-sh/setup-bun@v2 + - uses: actions/setup-node@v4 with: - bun-version: latest + node-version: 18 + cache: yarn - name: Install dependencies - run: bun install --frozen-lockfile - + run: yarn install --frozen-lockfile - name: Build website - run: bun build + run: yarn build - name: Upload Build Artifact uses: actions/upload-pages-artifact@v3 @@ -50,11 +48,5 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - if: - github.ref == 'refs/heads/main' && github.event_name != 'pull_request' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./websites/build - user_name: "github-actions[bot]" - user_email: "github-actions[bot]@users.noreply.github.com" + id: deployment + uses: actions/deploy-pages@v4