Skip to content

Commit

Permalink
💫 chore: deploy pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz committed Jul 26, 2024
1 parent 0a752b3 commit 456c828
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: gh-pages

on:
# set triggers here, like on push or on release
workflow_dispatch:
push:
branches: [ main ]
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.12.x

- uses: pnpm/[email protected]
with:
version: 9

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build:gh-pages

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./dist
# Leave user_name and user_email unset to commit under your own username
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
# Optional. I'm using this for testing.
allow_empty_commit: false

0 comments on commit 456c828

Please sign in to comment.