Skip to content

Commit 534b3ea

Browse files
Create deploy.yml
1 parent 4fde806 commit 534b3ea

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Emerald UI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Deploy to GitHub Pages
26+
run: |
27+
git config --global user.name ${{ github.actor }}
28+
git config --global user.email ${{ github.actor }}@users.noreply.github.com
29+
npm run deploy
30+
env:
31+
# This is needed if your deploy script uses gh-pages
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)