Skip to content

Commit 81479b8

Browse files
committed
update documentation build action
1 parent d84ef84 commit 81479b8

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/documentation.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
name: Documentation
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
tags: '*'
8-
pull_request:
9-
102
jobs:
113
build:
124
permissions:
135
contents: write
146
runs-on: ubuntu-latest
157
steps:
16-
- uses: actions/checkout@v2
17-
- uses: julia-actions/setup-julia@latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: julia-actions/setup-julia@v1
1811
with:
1912
version: '1.10'
20-
- name: Install dependencies
13+
- uses: actions/cache@v1
14+
env:
15+
cache-name: cache-artifacts
16+
with:
17+
path: ~/.julia/artifacts
18+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
19+
restore-keys: |
20+
${{ runner.os }}-test-${{ env.cache-name }}-
21+
${{ runner.os }}-test-
22+
${{ runner.os }}-
23+
- uses: julia-actions/julia-buildpkg@v1
24+
- name: Build
2125
run: |
2226
current_path=${{ github.workspace }}
2327
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
24-
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.build("ReactionMechanismSimulator");'
28+
julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
2529
- name: Build and deploy
2630
env:
2731
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token

0 commit comments

Comments
 (0)