Skip to content

Commit

Permalink
up ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarusA committed Feb 3, 2024
1 parent b098177 commit f16595e
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 180 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/deployDocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Julia version
uses: julia-actions/setup-julia@v1
- name: Julia cache
uses: julia-actions/cache@v1
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm # or pnpm / yarn
cache-dependency-path: 'package-lock.json' # this should be a package-lock.json file
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm add -D vitepress # or pnpm install / yarn install / bun install
run: npm ci # or pnpm install / yarn install / bun install
- name: Julia version
uses: julia-actions/setup-julia@v1
- name: Julia cache
uses: julia-actions/cache@v1
- name: Install documentation dependencies
run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile()'
run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()'
- name: generating examples md files
run: |
julia --project=docs/ --color=yes docs/make.jl
Expand All @@ -61,7 +61,7 @@ jobs:
NODE_OPTIONS=--max-old-space-size=32768 npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
touch docs/docs_site/.vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: docs/docs_site/.vitepress/dist

Expand All @@ -76,4 +76,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
11 changes: 6 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Manifest.toml
.vscode
docs/docs
docs/docs/cache
docs/docs_site
docs/docs_site/cache
.DS_Store
node_modules
docs/docs/.vitepress/dist
docs/docs/.vitepress/cache
docs/src/.vitepress/cache
docs/docs_site/.vitepress/dist
docs/docs_site/.vitepress/cache
docs/src/.vitepress/cache
docs/src/.vitepress/dist
Loading

0 comments on commit f16595e

Please sign in to comment.