Skip to content

Update deploy-staging.yml #4

Update deploy-staging.yml

Update deploy-staging.yml #4

name: Deploy Staging
on:
push:
branches:
- Staging # Trigger deployment when pushing to the staging branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
- name: Install dependencies
run: yarn install
- name: Build Docusaurus
run: yarn build
deploy:
name: Deploy to GitHub Pages
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4