Skip to content

Commit

Permalink
Fix gh-pages build
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Jul 31, 2024
1 parent fe8c2ae commit 1cc225c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}

- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: '20'
cache: 'yarn' # Caches Yarn dependencies

- name: Build
run: export NODE_OPTIONS=--max_old_space_size=6144 && npm ci && BASE_URL=/kuber-playground/ npm run build
run: export NODE_OPTIONS=--max_old_space_size=6144 && yarn install && BASE_URL=/kuber-playground/ yarn build

- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
email: sudipbhattarai100@gmail.com
build_dir: dist/
build_dir: dist/

0 comments on commit 1cc225c

Please sign in to comment.