Skip to content

Commit

Permalink
Add github page deploy (#71)
Browse files Browse the repository at this point in the history
Signed-off-by: weilinfox <[email protected]>
  • Loading branch information
weilinfox authored Jan 22, 2025
1 parent a1afdb0 commit aa49915
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/gh-page.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: gh-page

on:
push:
branches:
- zh

permissions: write-all

jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: 'ruyisdk/ruyisdk-website'

- name: Modify website
run: |
rmdir docs
sed -i 's| baseUrl:.*| baseUrl: "/docs/",|' ./docusaurus.config.js
- uses: actions/checkout@v4
with:
fetch-depth: 0
path: './docs'

- uses: actions/setup-node@v4
with:
node-version: 22.4.1
cache: npm

- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit aa49915

Please sign in to comment.