-
Notifications
You must be signed in to change notification settings - Fork 103
31 lines (24 loc) · 914 Bytes
/
deploy_site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deploy Site
on:
workflow_dispatch:
push:
branches: [ "WebSite" ]
jobs:
build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Configure Yarn
working-directory: ${{github.workspace}}/docusaurus
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: yarn
- name: Build
working-directory: ${{github.workspace}}/docusaurus
# Build your program with the given configuration
run: yarn build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./docusaurus/build