Skip to content

Merge pull request #121 from cdisc-org/dev #154

Merge pull request #121 from cdisc-org/dev

Merge pull request #121 from cdisc-org/dev #154

Workflow file for this run

# https://github.com/marketplace/actions/deploy-to-github-pages
name: Build and Deploy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: write # This is required for JamesIves/github-pages-deploy-action
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm install
npm ci
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.