Skip to content

Create deploy.yml

Create deploy.yml #1

Workflow file for this run

name: Deploy Emerald UI
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Deploy to GitHub Pages
run: |
git config --global user.name ${{ github.actor }}
git config --global user.email ${{ github.actor }}@users.noreply.github.com
npm run deploy
env:
# This is needed if your deploy script uses gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}