Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👋 Travis - Welcome GH Actions #17

Merged
merged 7 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-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
8 changes: 8 additions & 0 deletions .github/texlive/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pandoc
texlive-base
texlive-latex-base
texlive-latex-recommended
texlive-latex-extra
texlive-fonts-recommended
texlive-xetex
liblapack-dev
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 }}
29 changes: 0 additions & 29 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'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ indigo: indigo-jekyll-master

.PHONY: ready

ready: indigo $(HTMLS) notes.pdf notebooks.zip
ready: indigo $(HTMLS) notebooks.zip

_site: ready
jekyll build
Expand Down
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ baseurl: /doctoral-programming-intro
markdown: redcarpet
redcarpet:
extensions: ["strikethrough","tables"]
exclude:
- vendor/
- Gemfile
- Gemfile.lock
26 changes: 0 additions & 26 deletions travis/deploy.sh

This file was deleted.

Binary file removed travis/secrets.tar.enc
Binary file not shown.