Skip to content

Commit

Permalink
Update astro.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekpal1 authored Nov 10, 2023
1 parent 6f569d9 commit 1dea5fc
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ on:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

env:
BUILD_PATH: "." # default value when not using subfolders

jobs:
build:
name: Build
Expand All @@ -20,14 +28,21 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: 'npm'
node-version: "18"
cache: 'pnpm'

- name: Install dependencies with npm
run: npm ci
- name: Install dependencies with pnpm
run: pnpm install
working-directory: ${{ env.BUILD_PATH }}

- name: Build with Astro
run: |
npm run build
pnpm run build \
--site "${{ steps.pages.outputs.origin }}" \
--base "${{ steps.pages.outputs.base_path }}"
working-directory: ${{ env.BUILD_PATH }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ${{ env.BUILD_PATH }}/dist

0 comments on commit 1dea5fc

Please sign in to comment.