Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed Feb 15, 2024
1 parent ef3bff9 commit 9b19138
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ jobs:
- name: Test with nbval
run: |
find notebooks -maxdepth 1 -name "[01][456789]*.ipynb" | sort -n | xargs pytest -vx --nbval-lax --durations=0
28 changes: 21 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
nikola_build:
runs-on: ubuntu-latest

name: 'Deploy Nikola to GitHub Pages'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- name: Check out
uses: actions/checkout@v2
- name: Build and Deploy Nikola
uses: fehiepsi/nikola-action@v9
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
dry_run: false
python-version: ${{ matrix.python-version }}
- name: Build and Deploy Nikola
run: |
python -m pip install --upgrade pip
pip install "Nikola[extras]"
cd site
nikola_github deploy

0 comments on commit 9b19138

Please sign in to comment.