Skip to content

Commit

Permalink
chore: add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
really-need-anonymous committed Dec 28, 2024
1 parent bd17be3 commit 30291d1
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cspell-dict.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
changefreq
github
hideable
lastmod
lidao
Expand Down
1 change: 1 addition & 0 deletions .cspell-ignore.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dracula
easyops
peaceiris
40 changes: 40 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
pages: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
lfs: true

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build # default: public

0 comments on commit 30291d1

Please sign in to comment.