Skip to content

Commit

Permalink
setup gh action for quarto publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
chendaniely committed Jul 31, 2024
1 parent 963d56b commit 4992bab
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install Python and Dependencies
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- run: pip install jupyter
- run: pip install -r requirements.txt

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ setup_python_venv:
pip freeze | xargs pip uninstall -y
pip install ipykernel jupyter numpy matplotlib
pip freeze > requirements.txt

publish_manual:
# use this to manually update gh-pages
quarto publish gh-pages

0 comments on commit 4992bab

Please sign in to comment.