fix: Update docusaurus.config.js #13
This file contains 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 to GitHub Pages | |
on: | |
push: | |
branches: | |
- test-structure # Trigger on pushes to the 'test-structure' branch | |
permissions: | |
id-token: write | |
pages: write | |
deployments: write | |
contents: read # Required for actions/checkout@v4 | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # Install the specified Node.js version | |
- name: Install dependencies | |
run: npm ci | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: github-pages | |
path: ./ | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |