Skip to content

Merge pull request #35 from ralphv/dependabot/npm_and_yarn/docusaurus… #78

Merge pull request #35 from ralphv/dependabot/npm_and_yarn/docusaurus…

Merge pull request #35 from ralphv/dependabot/npm_and_yarn/docusaurus… #78

Workflow file for this run

name: Deploy Docusaurus
on:
push:
branches:
- 'main'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write # Allows the workflow to push to the repository
pages: write # Allows the workflow to deploy to GitHub Pages
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
- name: Install dependencies
working-directory: ./docusaurus
run: npm install
- name: Build Docusaurus
working-directory: ./docusaurus
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docusaurus/build
cname: gallifrey-rules.dev