Skip to content

Commit cd049bc

Browse files
committed
πŸ‘· πŸ‘‹πŸ‘‹ Travis - Welcome GH actions
Imported from UCL-RITS/doctoral-programming-intro#17
1 parent d2d8383 commit cd049bc

File tree

7 files changed

+71
-62
lines changed

7 files changed

+71
-62
lines changed

β€Ž.github/python/requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-r ../../requirements.txt
2+
git+https://github.com/jakevdp/JSAnimation.git
3+
nbconvert==5.6.1
4+
# https://github.com/jupyter/nbgrader/issues/1373#issuecomment-702798246
5+
jupyter-client==6.1.12
6+
# https://github.com/jupyter/jupyter_client/issues/637
7+
git+https://github.com/ucl-rits/greeter.git
8+
line_profiler

β€Ž.github/texlive/requirements.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pandoc
2+
texlive-base
3+
texlive-latex-base
4+
texlive-latex-recommended
5+
texlive-latex-extra
6+
texlive-fonts-recommended
7+
texlive-xetex
8+
texlive-science
9+
tree
10+
lmodern
11+
fonts-cmu
12+
inkscape
13+
ffmpeg

β€Ž.github/workflows/build_site.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build website
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
Build-website:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/cache@v2 # FIXME: add pip + latex + gems
15+
with:
16+
path: vendor/bundle
17+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
18+
restore-keys: |
19+
${{ runner.os }}-gems-
20+
- name: Install TeXLive
21+
uses: DanySK/[email protected]
22+
- id: setup-python
23+
name: Setup Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.8
27+
- name: Install dependencies
28+
uses: py-actions/py-dependency-install@v2
29+
with:
30+
path: ".github/python/requirements.txt"
31+
- name: Building notes
32+
run: make ready
33+
- name: Builds website
34+
uses: helaili/jekyll-action@v2
35+
with:
36+
target_branch: 'gh-pages'
37+
build_only: true
38+
- name: Build website and deploy
39+
if: github.ref == 'refs/heads/master'
40+
uses: helaili/jekyll-action@v2
41+
with:
42+
target_branch: 'gh-pages'
43+
token: ${{ secrets.GITHUB_TOKEN }}

β€Ž.travis.yml

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

β€ŽGemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'jekyll', '~> 3.1.6'
4+
gem 'redcarpet', '~> 3.5.0'

β€Ž_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ include:
3030
- "ch04packaging/greetings/doc/_static"
3131
- "ch04packaging/greetings/doc/_modules"
3232
exclude:
33+
- vendor/
34+
- Gemfile
35+
- Gemfile.lock
3336
- "*/*.nbconvert.ipynb"
3437
- "*/*.v2.ipynb"
3538
- "combined_files"

β€Žsecrets.tar.enc

-10 KB
Binary file not shown.

0 commit comments

Comments
Β (0)