Skip to content

Commit 7de5980

Browse files
committed
update documentation build action
1 parent d84ef84 commit 7de5980

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/documentation.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,26 @@ jobs:
1313
contents: write
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: julia-actions/setup-julia@latest
16+
- uses: actions/checkout@v4
17+
- uses: julia-actions/setup-julia@v1
1818
with:
1919
version: '1.10'
20-
- name: Install dependencies
20+
- uses: actions/cache@v1
21+
env:
22+
cache-name: cache-artifacts
23+
with:
24+
path: ~/.julia/artifacts
25+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
26+
restore-keys: |
27+
${{ runner.os }}-test-${{ env.cache-name }}-
28+
${{ runner.os }}-test-
29+
${{ runner.os }}-
30+
- uses: julia-actions/julia-buildpkg@v1
31+
- name: Build
2132
run: |
2233
current_path=${{ github.workspace }}
2334
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
24-
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.build("ReactionMechanismSimulator");'
35+
julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
2536
- name: Build and deploy
2637
env:
2738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token

0 commit comments

Comments
 (0)