Skip to content

Commit

Permalink
Auto build and deploy (#10)
Browse files Browse the repository at this point in the history
* Fixing auto deploy

* Fixed auto build and push to gh-pages branch workflow
  • Loading branch information
andrewlee348 authored Nov 4, 2024
1 parent 78113ea commit d5e6d70
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Build and Push

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

- name: Setup PNPM
Expand All @@ -23,12 +23,11 @@ jobs:
- name: Build
run: pnpm build

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

0 comments on commit d5e6d70

Please sign in to comment.