Skip to content

Fix deploy-pages

Fix deploy-pages #4

Workflow file for this run

name: Build & Deploy to GitHub Pages
on:
push:
branches:
- smart-presentations
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- name: Install Dependencies
run: yarn install
- name: Build Project
env:
VERCEL_GIT_COMMIT_SHA: ${{ github.sha }}
run: yarn build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: github-pages
path: excalidraw-app/build
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4