Skip to content

Commit

Permalink
ci: build
Browse files Browse the repository at this point in the history
  • Loading branch information
hailaz committed Oct 28, 2024
1 parent ec91d59 commit be1ecfc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- 'main'
# schedule:
# - cron: '0 15 * * *'

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
# cname: pages.goframe.org

0 comments on commit be1ecfc

Please sign in to comment.