Skip to content

Commit

Permalink
[UPDATE] Enhance GitHub Actions workflow for publishing with Python s…
Browse files Browse the repository at this point in the history
…etup and dependency installation
  • Loading branch information
JuliusWelzel committed Dec 18, 2024
1 parent 117283a commit 6c7b8c5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
name: Publish

on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish
branches:
- main

jobs:
build-deploy:
publish:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter nbformat
- name: Set up Quarto
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Render and Publish
- name: Render and publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ jobs:
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
project: website

0 comments on commit 6c7b8c5

Please sign in to comment.