Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 39 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@ on:
push:
branches:
- master
pull_request:
# The toolchain, GPU and MPI pages are generated from BinaryBuilderBase, Yggdrasil
# and the General registry, so rebuild weekly to pick up their changes.
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:

permissions:
contents: write
contents: read

jobs:
build-and-deploy:
# Builds the site with read-only permissions, since it runs code downloaded from
# Yggdrasil (see utils.jl). Pull requests stop here.
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -17,14 +27,36 @@ jobs:
uses: julia-actions/setup-julia@v3
with:
version: '1'
- run: julia -e '
using Pkg; Pkg.add(["NodeJS", "Franklin"]);
- name: Build site
run: julia --project=. -e '
using Pkg; Pkg.instantiate();
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
using Franklin;
Pkg.activate("."); Pkg.instantiate();
optimize(minify=false)'
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
- name: Upload site
uses: actions/upload-artifact@v7
with:
name: site
path: __site

deploy:
needs: build
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Download site
uses: actions/download-artifact@v8
with:
name: site
path: __site
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.DS_Store
__site
Manifest.toml
node_modules/
package.json
package-lock.json
9 changes: 0 additions & 9 deletions .gitlab-ci.yml

This file was deleted.

14 changes: 14 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[deps]
BinaryBuilderBase = "7f725544-6523-48cd-82d1-3fa08ff4056e"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"
RegistryInstances = "2792f1a3-b283-48e8-9a74-f99dce5104f3"

[compat]
BinaryBuilderBase = "1.49"
Downloads = "1"
Franklin = "0.10"
NodeJS = "2"
RegistryInstances = "0.1"
julia = "1.10"
1 change: 0 additions & 1 deletion _assets/hamburger.svg

This file was deleted.

Binary file removed _assets/rndimg.jpg
Binary file not shown.
27 changes: 0 additions & 27 deletions _assets/scripts/generate_results.jl

This file was deleted.

5 changes: 0 additions & 5 deletions _assets/scripts/output/script1.out

This file was deleted.

Loading
Loading