Skip to content

Commit

Permalink
Add github pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
btkcodedev committed Feb 23, 2024
1 parent 018c069 commit 8a30cee
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Github Page Deploy Workflow

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "18"
- run: npm ci
- run: npm run build
- name: Deploy
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 8a30cee

Please sign in to comment.