-
-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (71 loc) · 2.51 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build and Deploy
on:
push:
# NOTE: For a **project** site (username.github.io/project/), push things
# to the **master** branch and make sure to set the line below to
# `- master`; also, at the end of the file, change to `BRANCH: gh-pages`
# For a **personal** site (username.github.io/), push things to a **dev**
# branch and make sure to set the line below to `- dev` this is because
# for user pages GitHub pages **requires** the deployment to be on the
# master branch; also, at the end of the file, change to `BRANCH: master`
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
GKSwstype: 100
JULIA_NUM_THREADS: 4
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
#- name: Install SSH Client
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.FRANKLIN_PRIV }}
#- name: Install LaTeX env
# run: sudo apt-get update && sudo apt-get install -y dvipng texlive-latex-recommended
#- name: Install Rust
# uses: hecrj/setup-rust-action@v1
# with:
# rust-version: stable
#- name: Install python
# uses: actions/setup-python@v1
# with:
# python-version: '3.x'
#- run: pip install numpy sympy==1.5.* matplotlib
#- name: Install Julia
# uses: julia-actions/setup-julia@v1
# with:
# version: 1.4.1
#- run: julia --project=@. -e 'using Pkg; Pkg.instantiate()'
#- run: julia --project=@. ./_mytools/deploy.jl
- name: Cache __site
uses: actions/cache@v2
with:
path: __site
key: build-${{ hashFiles('**/Dockerfiles') }}
restore-keys: |
build-
- uses: whoan/docker-build-with-cache-action@v5
with:
username: terasakisatoshi
password: ${{ secrets.DOCKER_PASSWORD }}
image_name: terasakisatoshi/mathseminarjl
#push_image_and_stages: false
- run: docker build --cache-from terasakisatoshi/mathseminarjl -t mathseminarjl .
- run: docker-compose run --rm julia julia -e 'using Pkg; Pkg.instantiate()'
- run: docker-compose run --rm julia julia /work/_mytools/deploy.jl
- name: Upload math result for job 1
uses: actions/upload-artifact@v1
with:
name: __site
path: __site
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ./__site