Skip to content

Commit

Permalink
switch action
Browse files Browse the repository at this point in the history
  • Loading branch information
serusko committed Nov 9, 2024
1 parent e58c2e2 commit 4ea7b2c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/docu.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Docusaurus2
name: Deploy Docusaurus to GitHub Pages

on:
push:
branches:
- develop
- main

jobs:
deploy:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -16,18 +19,20 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18

- name: Switch to DOCS folder
run: cd docs
cache: npm

- name: Install dependencies
run: npm ci

- name: Build website
run: npm run build

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit 4ea7b2c

Please sign in to comment.