From fb703401eba02fe9352babc8ea4d6b5ea258eb00 Mon Sep 17 00:00:00 2001 From: Mao Zhou Date: Fri, 20 Sep 2024 16:15:29 +1000 Subject: [PATCH 1/2] update --- .github/workflows/CI.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 863256c..2ca515a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -20,17 +20,12 @@ jobs: with: version: "1" - - uses: julia-actions/cache@v2 - - - run: julia --color=yes --project -e 'using Pkg; Pkg.instantiate()' - - - run: julia --project -e 'using CSL_Chinese; CSL_Chinese.build()' - + - run: julia --color=yes --project -e ' + using Pkg; Pkg.instantiate(); + using CSL_Chinese; CSL_Chinese.build()' - name: Deploy to gh-pages branch - if: ${{ github.event_name != 'pull_request' }} - uses: peaceiris/actions-gh-pages@v4 + uses: JamesIves/github-pages-deploy-action@releases/v3 with: - cname: zmalt.github.io/CSL_Chinese - github_token: ${{ secrets.GITHUB_TOKEN }} - force_orphan: true - publish_dir: ./_build/ + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: _build From 8f15fd2e8035792f2c31ac5f826b7b1106fba32e Mon Sep 17 00:00:00 2001 From: Mao Zhou Date: Fri, 20 Sep 2024 19:03:01 +1000 Subject: [PATCH 2/2] test --- .github/workflows/CI.yml | 23 +++++++++++++++++------ metadata.yml | 2 +- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2ca515a..3e9cdc1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,7 +10,9 @@ on: jobs: BuildAndDeploy: runs-on: ubuntu-latest - permissions: write-all + permissions: + contents: write + steps: - uses: actions/checkout@v4 with: @@ -23,9 +25,18 @@ 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/ diff --git a/metadata.yml b/metadata.yml index 79861a7..933076a 100644 --- a/metadata.yml +++ b/metadata.yml @@ -4,7 +4,7 @@ subtitle: "" author: - Mao Zhou -repo: +repo: https://github.com/ZMAlt/CSL_Chinese secPrefix: Section allow-subsubsections: true