Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

build: tweak macos build #556

build: tweak macos build

build: tweak macos build #556

Workflow file for this run

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@v6
- uses: bazel-contrib/[email protected]
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
# Build the Docusaurus site
- name: Build Docusaurus Site
id: build
run: |
bazel build \
--config=gh-ci \
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} \
//website:dist
echo "BUILD_PATH=$(bazel cquery --output=files //website:dist)" >> $GITHUB_OUTPUT
# 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: ${{ steps.build.outputs.BUILD_PATH }}