Skip to content

Commit acd19e4

Browse files
authored
Update CI.yml for vitepress: pls work
1 parent bd8aadc commit acd19e4

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,34 @@ jobs:
4343
runs-on: ubuntu-latest
4444
permissions:
4545
contents: write
46+
pages: write
47+
id-token: write
48+
statuses: write # Add this permission
49+
# Add this concurrency setting
50+
concurrency:
51+
group: pages
52+
cancel-in-progress: false
4653
steps:
47-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v4 # Update to v4
55+
with:
56+
fetch-depth: 0
4857
- uses: julia-actions/setup-julia@v1
4958
with:
5059
version: '1'
51-
- uses: julia-actions/julia-buildpkg@v1
60+
- uses: julia-actions/cache@v1
61+
# Replace julia-buildpkg with more specific documentation dependencies
62+
- name: Install documentation dependencies
63+
run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()'
5264
- uses: julia-actions/julia-docdeploy@v1
5365
env:
5466
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
- run: |
67+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
68+
GKSwstype: "100"
69+
JULIA_DEBUG: "Documenter"
70+
DATADEPS_ALWAYS_ACCEPT: true # Add this
71+
# Keep your doctest step
72+
- name: Run doctests
73+
run: |
5674
julia --project=docs -e '
5775
using Documenter: DocMeta, doctest
5876
using MolecularEvolution

0 commit comments

Comments
 (0)