-
Notifications
You must be signed in to change notification settings - Fork 8
67 lines (56 loc) · 1.51 KB
/
deploy.yml
File metadata and controls
67 lines (56 loc) · 1.51 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build and Deploy Website
on:
push:
branches:
- main
paths:
- .github/workflows/**
- _quarto.yml
- Project.toml
- Manifest.toml
- CNAME
- index.qmd
- index-listing.json
- index.feed-full-staged
- styles.css
- pages/**
- JuliaHealthBlog/**
- assets/**
workflow_dispatch:
permissions:
contents: write
concurrency:
group: deploy-main
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: "1"
- name: Cache Julia packages
uses: actions/cache@v4
with:
path: ~/.julia
key: ${{ runner.os }}-julia-${{ hashFiles('Project.toml', 'Manifest.toml') }}
restore-keys: |
${{ runner.os }}-julia-
- name: Instantiate Julia project
run: julia --project=. -e "using Pkg; Pkg.instantiate()"
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render site
uses: quarto-dev/quarto-actions/render@v2
- name: Deploy website to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_site
keep_files: true
cname: juliahealth.org
commit_message: "ci: deploy website [skip ci]"