Skip to content

Commit

Permalink
Unify workflow in a single job
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Mar 2, 2024
1 parent 28dfc6e commit 6095bbb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/update_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:

build-jupyterlite:
update-site:
runs-on: ubuntu-latest
name: Build JupyterLite
steps:
Expand All @@ -24,14 +24,8 @@ jobs:
- name: Build the JupyterLite site
working-directory: jupyterlite
run: |
jupyter lite build --contents notebooks --output-dir ../assets/jupyterlite
update-site:
runs-on: ubuntu-20.04
needs: build-jupyterlite
name: Update site on Github Pages
steps:
- uses: actions/checkout@v2
mkdir ../assets/notebooks/
jupyter lite build --contents notebooks --output-dir ../assets/notebooks
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down

0 comments on commit 6095bbb

Please sign in to comment.