Skip to content

feat: docurusaus改造 #3

feat: docurusaus改造

feat: docurusaus改造 #3

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
# container: pandoc/latex jj
steps:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.20.3
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- uses: darrenjennings/algolia-docsearch-action@master
with:
algolia_application_id: 'B0I4Q5CLN8'
algolia_api_key: '478d2fe7bdad5ff46b87f1e8e4662e81'
file: 'algolia-config.json'
- name: creates output
run: npm install && npm run build --config docs
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
with:
source-directory: 'docs/build'
destination-github-username: '15669072513'
destination-repository-name: 'mosn.github.io'
target-branch: master
target-directory: 'layotto'