diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9c4f79a..7dee242 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,8 +16,20 @@ jobs: steps: - name: Checkout your repository using git uses: actions/checkout@v4 - - name: Install, build, and upload your site output - uses: withastro/action@v2 + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: '18' # Choose a version compatible with Astro + cache: 'pnpm' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build the Astro site + run: pnpm build - name: Upload static files as artifact id: deployment uses: actions/upload-pages-artifact@v3