Skip to content

Commit

Permalink
Added auto build and deploy to gh-pages upon pushing to master
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Nov 4, 2024
1 parent f7a5a4c commit 78113ea
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build app

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
name: Build and Push

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Build
run: pnpm build

- name: Deploy to gh-pages
uses: s0/git-publish-subdir-action@develop
with:
folder: dist
branch: gh-pages
repo: self
message: 'Build: ({sha}) {msg}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 78113ea

Please sign in to comment.