Skip to content

Commit

Permalink
add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shunsock committed Jan 4, 2025
1 parent ce0f150 commit f1d4851
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy GitHub Pages

on:
push:
branches:
- main

defaults:
run:
working-directory: src

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Dependencies
run: bun install

- name: Build
run: bun run build:docs

- name: GitHub Pagesへデプロイ
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist

0 comments on commit f1d4851

Please sign in to comment.