Skip to content

update hithub pages command #4

update hithub pages command

update hithub pages command #4

Workflow file for this run

name: Deploy Docusaurus to GitHub Pages
on:
push:
branches:
- v2.x # Change this to your default branch if it's not `main`
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: yarn
- name: Build Docusaurus site
run: yarn workspace @nish1896/eslint-config-docs build
- name: Deploy to GitHub Pages
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GH_PAGES }}@github.com/${{ github.repository }}.git
git add .
git commit -m 'Deploy to GitHub Pages'
git push origin gh-pages