Skip to content

GitHub Action for deploying the CACAO Roaster and hosting on Github P… #1

GitHub Action for deploying the CACAO Roaster and hosting on Github P…

GitHub Action for deploying the CACAO Roaster and hosting on Github P… #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build-and-deploy:
runs-on: ubuntu-latest
concurrency: ci-${{github.ref}}
permissions:
id-token: write
pages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Build
run: |
npm ci
npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
folder: dist
branch: gh-pages