-
Notifications
You must be signed in to change notification settings - Fork 8
33 lines (31 loc) · 948 Bytes
/
Build.yml
File metadata and controls
33 lines (31 loc) · 948 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
name: Build JuliaPhysics Website
on:
push:
branches: [source]
tags: '*'
pull_request:
jobs:
build:
# These permissions are needed to:
# - Deploy the documentation: https://documenter.juliadocs.org/stable/man/hosting/#Permissions
# - Delete old caches: https://github.com/julia-actions/cache#usage
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
show-versioninfo: true
- uses: julia-actions/cache@v2
- name: Instantiate julia environment
shell: julia --color=yes --project {0}
run: import Pkg; Pkg.instantiate()
- name: Build and deploy documentation
run: julia --color=yes --project make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}