Skip to content

Enhance UI with custom styles and improve navbar and footer components #15

Enhance UI with custom styles and improve navbar and footer components

Enhance UI with custom styles and improve navbar and footer components #15

Workflow file for this run

name: Update Crosswalk and Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
paths:
- 'docs/**'
- 'scripts/**'
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
update-crosswalk:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm ci || npm install
- name: Generate Crosswalk
run: npm run generate:crosswalk
- name: Commit and Push changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/specification/crosswalk.mdx
git commit -m "Automated crosswalk update"
git push
else
echo "No changes to commit"
fi
build:
needs: update-crosswalk
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Pull latest changes
run: git pull origin ${{ github.ref_name }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build Docusaurus website
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
deploy:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4