Skip to content

Commit 9b19138

Browse files
committed
fix workflows
1 parent ef3bff9 commit 9b19138

2 files changed

Lines changed: 21 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ jobs:
5353
- name: Test with nbval
5454
run: |
5555
find notebooks -maxdepth 1 -name "[01][456789]*.ipynb" | sort -n | xargs pytest -vx --nbval-lax --durations=0
56-

.github/workflows/main.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
on: [push]
1+
on:
2+
push:
3+
branches: [ master ]
4+
pull_request:
5+
branches: [ master ]
26

37
jobs:
48
nikola_build:
5-
runs-on: ubuntu-latest
9+
610
name: 'Deploy Nikola to GitHub Pages'
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: [3.9]
15+
716
steps:
8-
- name: Check out
9-
uses: actions/checkout@v2
10-
- name: Build and Deploy Nikola
11-
uses: fehiepsi/nikola-action@v9
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
1220
with:
13-
dry_run: false
21+
python-version: ${{ matrix.python-version }}
22+
- name: Build and Deploy Nikola
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install "Nikola[extras]"
26+
cd site
27+
nikola_github deploy

0 commit comments

Comments
 (0)