chore(deps): update dependency content-tag to v3.1.3 (#4987) #299
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 to Organization GitHub Pages | |
on: | |
push: | |
branches: | |
- main # The branch where updates are made in the source repo | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# Set up Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 # Specify the Node.js version compatible with your Docusaurus site | |
# Install dependencies | |
- name: Install Dependencies | |
run: bazel run --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} -- @pnpm//:pnpm --dir $PWD install --frozen-lockfile | |
# Build the Docusaurus site | |
- name: Build Docusaurus Site | |
run: cd website; bazel run -- @pnpm//:pnpm --dir $PWD run build | |
# Deploy to Organization GitHub Pages Repository | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
deploy_key: ${{ secrets.WEBSITE_SECRET_KEY }} | |
external_repository: formatjs/formatjs.github.io | |
publish_branch: main # default: gh-pages | |
publish_dir: ./website/build |