Skip to content

Commit

Permalink
Update Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cr-xu committed Feb 2, 2024
1 parent 9592c13 commit 8c0cb10
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/publish_website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,14 @@ jobs:
run: pip install notebook

- name: Convert notebook to HTML
run: jupyter nbconvert tutorial.ipynb --to slides --reveal-prefix reveal.js
run:


- name: Add files
- name: Export the notebook and Add files
run: |
mkdir temp
cp -r img/ temp/img/
cp tutorial.slides.html temp/index.html
- name: Fetch latest changes from remote branch
run: |
git fetch origin website
git checkout website
git pull origin website
git checkout main
jupyter nbconvert tutorial.ipynb --to slides --reveal-prefix reveal.js --output temp/index.html
- name: Push files to website branch
uses: ad-m/github-push-action@master
Expand Down

0 comments on commit 8c0cb10

Please sign in to comment.