Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tocean committed Oct 17, 2023
1 parent 7e577ea commit e87e2cc
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/gb-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: GitHub Pages

on:
push:
branches:
- main
- yuxiang/website
pull_request:
branches:
- main
- release/*

jobs:
docs-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup nodejs
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Test docs build
run: |
cd website
npm ci
npm run build
- name: Prepare ssh key
uses: webfactory/[email protected]
if: ${{ github.event_name == 'push' }}
with:
ssh-private-key: ${{ secrets.GH_PAGES_KEY }}
- name: Publish to GitHub Pages
if: ${{ github.event_name == 'push' }}
env:
GIT_USER: ${{ secrets.GH_PAGES_USERNAME }}
USE_SSH: true
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
cd website
npm run deploy

0 comments on commit e87e2cc

Please sign in to comment.