Skip to content

refactor: Update GitHub Pages deployment workflow and fix build step … #24

refactor: Update GitHub Pages deployment workflow and fix build step …

refactor: Update GitHub Pages deployment workflow and fix build step … #24

name: Build and Publish to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install & build
run: |
gh auth login
npm i
npm run deploy