Skip to content

Commit

Permalink
add github auto deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanGau committed Apr 20, 2024
1 parent 5ad77fd commit c9fd397
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: update gh-pages from master branch

on:
push:
branches: master

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # replace with your Node.js version

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: static

0 comments on commit c9fd397

Please sign in to comment.