Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:
jobs:
BuildAndDeploy:
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: write

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -23,9 +25,19 @@ jobs:
- run: julia --color=yes --project -e '
using Pkg; Pkg.instantiate();
using CSL_Chinese; CSL_Chinese.build()'
- name: Deploy to gh-pages branch
uses: JamesIves/github-pages-deploy-action@releases/v3

#- name: Deploy to gh-pages branch
# uses: JamesIves/github-pages-deploy-action@releases/v3
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# BRANCH: gh-pages
# FOLDER: _build

- name: Deploy to secondary branch
if: ${{ github.event_name != 'pull_request' }}
uses: peaceiris/actions-gh-pages@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _build
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_branch: gh-pages
publish_dir: ./_build/
2 changes: 1 addition & 1 deletion metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ subtitle: ""
author:
- Mao Zhou

repo:
repo: https://github.com/ZMAlt/CSL_Chinese
secPrefix: Section
allow-subsubsections: true

Expand Down