Skip to content

Commit

Permalink
update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Jan 3, 2025
1 parent 0b91ee9 commit fae79ed
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Docusaurus to GitHub Pages
on:
push:
branches:
- master
- master # Replace with your branch name if different

jobs:
deploy:
Expand All @@ -18,13 +18,11 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 22
node-version: 18 # Use a stable Node.js version like 18 LTS

# 3. Install dependencies and deploy
- name: Deploy Docusaurus
- name: Install dependencies and deploy
run: |
cd website
npm install
GIT_USER=${{ secrets.GITHUB_ACTOR }} npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npm ci
npm run deploy

0 comments on commit fae79ed

Please sign in to comment.