Skip to content

Commit

Permalink
Revert "try nix-portable"
Browse files Browse the repository at this point in the history
This reverts commit ada8fd6.
  • Loading branch information
luizirber committed Mar 3, 2021
1 parent e1cde23 commit 8a6d9b9
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,21 @@ on:
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/**') }}
- uses: actions/checkout@v2.3.4

- 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
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09

- name: Generate figures
run: ~/bin/nix-portable nix-shell --command "snakemake -j1"
env:
NP_DEBUG: 1
- name: Generate figures
run: 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/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: data/plots/

0 comments on commit 8a6d9b9

Please sign in to comment.