Skip to content

Commit 72bfc73

Browse files
authored
Merge pull request #2 from JuliaGaussianProcesses/first_structure
2 parents a76581c + 62f9bdc commit 72bfc73

File tree

212 files changed

+15775
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+15775
-80
lines changed

.github/workflows/DeployPage.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
pull_request:
7+
branches:
8+
- dev
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
persist-credentials: false
17+
# NOTE: Python is necessary for the pre-rendering (minification) step
18+
- name: Fix URLs for PR preview deployment (pull request previews)
19+
if: github.event_name == 'pull_request'
20+
run: |
21+
echo "JULIAGP_FRANKLIN_WEBSITE_URL=https://juliagps.netlify.app/previews/PR${{ github.event.number }}/" >> $GITHUB_ENV
22+
echo "JULIAGP_FRANKLIN_PREPATH=previews/PR${{ github.event.number }}" >> $GITHUB_ENV
23+
- run: echo $JULIAGP_FRANKLIN_WEBSITE_URL
24+
- run: echo $JULIAGP_FRANKLIN_PREPATH
25+
- name: Install python
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: '3.8'
29+
# NOTE: Here you can install dependencies such as matplotlib if you use
30+
# packages such as PyPlot.
31+
# - run: pip install matplotlib
32+
- name: Install Julia
33+
uses: julia-actions/setup-julia@v1
34+
with:
35+
version: 1.5
36+
# NOTE
37+
# The steps below ensure that NodeJS and Franklin are loaded then it
38+
# installs highlight.js which is needed for the prerendering step
39+
# (code highlighting + katex prerendering).
40+
# Then the environment is activated and instantiated to install all
41+
# Julia packages which may be required to successfully build your site.
42+
# The last line should be `optimize()` though you may want to give it
43+
# specific arguments, see the documentation or ?optimize in the REPL.
44+
- run: julia -e '
45+
using Pkg; Pkg.add(["NodeJS", "Franklin"]);
46+
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
47+
using Franklin;
48+
Pkg.activate("."); Pkg.instantiate();
49+
optimize()'
50+
- name: Deploy (preview)
51+
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name # if this build is a PR build and the PR is NOT from a fork
52+
uses: JamesIves/github-pages-deploy-action@releases/v3
53+
with:
54+
BRANCH: gh-preview
55+
FOLDER: __site
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
TARGET_FOLDER: "previews/PR${{ github.event.number }}"
58+
- name: Deploy (main)
59+
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
60+
uses: JamesIves/github-pages-deploy-action@releases/v3
61+
with:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
BRANCH: master
64+
FOLDER: __site

.github/workflows/pr_comment.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PR Comment # Write a comment in the PR with a link to the preview of the given website
2+
on:
3+
pull_request:
4+
types: [opened, reopened]
5+
jobs:
6+
pr_comment:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Create PR comment
10+
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name # if this is a pull request build AND the pull request is NOT made from a fork
11+
uses: thollander/actions-comment-pull-request@71efef56b184328c7ef1f213577c3a90edaa4aff
12+
with:
13+
message: 'Once the build has completed, you can preview your PR at this URL: https://juliagps.netlify.app/previews/PR${{ github.event.number }}/'
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
page/__site
1+
__site
2+
.vscode

0 commit comments

Comments
 (0)