Skip to content

Commit

Permalink
GitHub Action for deploying the CACAO Roaster and hosting on Github P…
Browse files Browse the repository at this point in the history
…ages.
  • Loading branch information
mateusdz committed Feb 12, 2024
1 parent 72c492f commit 7e604a2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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/github-pages-deploy-action@v4.5.0
with:
folder: dist
branch: gh-pages

0 comments on commit 7e604a2

Please sign in to comment.