-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1002 Bytes
/
publish.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
name: "Publish images"
on:
pull_request:
branches: [latest]
push:
branches: [latest]
jobs:
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: cache nix store
id: cache-nix
uses: actions/cache@v2
with:
path: |
~/.nix-portable/store
~/bin/nix
key: nix-${{ hashFiles('shell.nix') }}-${{ hashFiles('nix/**') }}
- name: install nix-portable
if: steps.cache-nix.outputs.cache-hit != 'true'
run: |
mkdir ~/bin
wget -qO ~/bin/nix-portable https://github.com/DavHau/nix-portable/releases/download/v003/nix-portable
chmod +x ~/bin/nix-portable
- name: Generate figures
run: ~/bin/nix-portable nix-shell --command "snakemake -j1"
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: data/plots/