Skip to content

fix: Only build the main branch #6

fix: Only build the main branch

fix: Only build the main branch #6

Workflow file for this run

name: Build and Deploy
on: [workflow_dispatch, push]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: github.ref_name == github.event.repository.default_branch
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install and Build
run: |
npm ci
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist