From 4de0322c94ef1aeb2d7cf9fe758de073b75f6ff7 Mon Sep 17 00:00:00 2001 From: Iwo Plaza Date: Mon, 12 Aug 2024 14:33:55 +0200 Subject: [PATCH] Deploying docs manually, without the help of withastro/action (#21) --- .github/workflows/deploy-docs.yml | 33 +++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 6cd62bc..8e8c705 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -18,12 +18,37 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout your repository using git + - name: Checkout Code Repository uses: actions/checkout@v4 - - name: Install, build, and upload your site - uses: withastro/action@v2 with: - path: apps/typed-binary-docs # The root location of your Astro project inside the repository. + fetch-depth: 1 + + - name: Print commit id, message and tag + run: | + git show -s --format='%h %s' + echo "github.ref -> {{ github.ref }}" + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + run_install: false + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --recursive --frozen-lockfile + + - name: Build all + run: pnpm build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./apps/typed-binary-docs/dist deploy: needs: build