Skip to content

Commit

Permalink
Merge pull request #6 from cyentific-rni/main
Browse files Browse the repository at this point in the history
Creating an online instance of the CACAO Roaster
GitHub Action for deploying the CACAO Roaster and hosting on Github Pages.
  • Loading branch information
mateusdz authored Feb 12, 2024
2 parents 72c492f + 7e604a2 commit 048a6a1
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 048a6a1

Please sign in to comment.