Update file(s) "/.github" from "ZigRazor/CXXGraph" #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |