-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (29 loc) · 852 Bytes
/
Copy pathCI.yml
File metadata and controls
36 lines (29 loc) · 852 Bytes
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:
- master
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@v1
with:
version: "1"
- uses: julia-actions/cache@v1
- run: julia --color=yes --project -e 'using Pkg; Pkg.instantiate()'
- run: julia --project -e 'using KeyNotes; KeyNotes.build()'
- name: Deploy
if: ${{ github.event_name != 'pull_request' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# To avoid missing bugs and to keep the gh-pages repository small.
force_orphan: true
publish_dir: ./_build/