Skip to content

Commit 04a2605

Browse files
authored
Merge pull request #4 from cpfiffer/master
Separate turing.ml site from Turing.jl
2 parents 77a98d2 + e7e44dd commit 04a2605

File tree

156 files changed

+126
-225655
lines changed

Some content is hidden

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

156 files changed

+126
-225655
lines changed

.github/workflows/Documentation.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
tags: '*'
8+
workflow_dispatch:
9+
schedule:
10+
# Run on the 23rd hour every day
11+
- cron: '0 23 * * *'
12+
13+
jobs:
14+
docs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Julia
19+
uses: julia-actions/setup-julia@v1
20+
with:
21+
version: '1'
22+
- name: Set up Ruby 2.6
23+
uses: actions/setup-ruby@v1
24+
with:
25+
ruby-version: '2.6.x'
26+
- name: Install dependencies
27+
run: |
28+
julia --project=docs -e '
29+
using Pkg
30+
Pkg.activate(".")
31+
Pkg.develop("Turing")
32+
Pkg.instantiate()
33+
Pkg.update()'
34+
- name: Build and deploy (master)
35+
run: |
36+
julia --project=docs --color=yes make.jl
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
40+
TURING_VERSION: dev
41+
- name: Build and deploy (stable)
42+
run: |
43+
git -C ~/.julia/dev/Turing checkout $(git -C ~/.julia/dev/Turing tag --sort version:refname | tail -n 1)
44+
julia --project=docs --color=yes make.jl $(git -C ~/.julia/dev/Turing tag --sort version:refname | tail -n 1)
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ _site/
22
.sass-cache/
33
.jekyll-cache/
44
.jekyll-metadata
5-
.gems/
5+
.gems/
6+
Manifest.toml

0 commit comments

Comments
 (0)