-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 843 Bytes
/
CI.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
32
33
34
35
36
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
BuildAndDeploy:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: julia-actions/setup-julia@v2
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()'
- name: Deploy to gh-pages branch
if: ${{ github.event_name != 'pull_request' }}
uses: peaceiris/actions-gh-pages@v4
with:
cname: zmalt.github.io/CSL_Chinese
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_dir: ./_build/