Skip to content

Commit e6a64d6

Browse files
committed
deploy docs workflow
1 parent 779beff commit e6a64d6

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: julia-actions/setup-julia@v2
19+
with:
20+
version: '1'
21+
22+
- uses: julia-actions/cache@v2
23+
24+
- name: Install dependencies
25+
run: julia --project=docs -e '
26+
using Pkg;
27+
Pkg.develop(PackageSpec(url=https://github.com/TheDisorderedOrganization/ParticlesMC.git));
28+
Pkg.instantiate()'
29+
30+
- name: Build and deploy
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: julia --project=docs docs/make.jl

0 commit comments

Comments
 (0)