minor changes #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docusaurus site with Yarn | |
| on: | |
| push: | |
| branches: | |
| - master # Change to your default branch if it's different (e.g., master) | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 # Use a recommended Node.js version (Docusaurus requires >= 18) | |
| cache: 'yarn' # This enables caching of yarn dependencies | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile # Installs dependencies using yarn | |
| - name: Build website | |
| run: yarn build # Runs the build command defined in your package.json | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build # The directory where Docusaurus builds the static files | |
| publish_branch: gh-pages # The branch to which the site will be deployed |