Skip to content

Commit

Permalink
👷 👋👋 Travis - Welcome GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dpshelio committed Oct 3, 2021
1 parent d2d8383 commit fb276c2
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 62 deletions.
8 changes: 8 additions & 0 deletions .github/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-r ../../requirements.txt
git+https://github.com/jakevdp/JSAnimation.git
nbconvert==5.6.1
# https://github.com/jupyter/nbgrader/issues/1373#issuecomment-702798246
jupyter-client==6.1.12
# https://github.com/jupyter/jupyter_client/issues/637
git+https://github.com/ucl-rits/greeter.git
git+https://github.com/rkern/line_profiler.git
13 changes: 13 additions & 0 deletions .github/texlive/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pandoc
texlive-base
texlive-latex-base
texlive-latex-recommended
texlive-latex-extra
texlive-fonts-recommended
texlive-xetex
texlive-science
tree
lmodern
fonts-cmu
inkscape
ffmpeg
43 changes: 43 additions & 0 deletions .github/workflows/build_site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build website
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Build-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2 # FIXME: add pip + latex + gems
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install TeXLive
uses: DanySK/setup-texlive-action@0.1.1
- id: setup-python
name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
uses: py-actions/py-dependency-install@v2
with:
path: ".github/python/requirements.txt"
- name: Building notes
run: make ready
- name: Builds website
uses: helaili/jekyll-action@v2
with:
target_branch: 'gh-pages'
build_only: true
- name: Build website and deploy
if: github.ref == 'refs/heads/master'
uses: helaili/jekyll-action@v2
with:
target_branch: 'gh-pages'
token: ${{ secrets.GITHUB_TOKEN }}
62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'jekyll', '~> 3.1.6'
gem 'redcarpet', '~> 3.5.0'
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ include:
- "ch04packaging/greetings/doc/_static"
- "ch04packaging/greetings/doc/_modules"
exclude:
- vendor/
- Gemfile
- Gemfile.lock
- "*/*.nbconvert.ipynb"
- "*/*.v2.ipynb"
- "combined_files"
Expand Down
Binary file removed secrets.tar.enc
Binary file not shown.

0 comments on commit fb276c2

Please sign in to comment.