From 6c7b8c5d079b072c150a6d57ea2cd63ada498226 Mon Sep 17 00:00:00 2001 From: jwelzel <52565341+JuliusWelzel@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:08:11 +0100 Subject: [PATCH] [UPDATE] Enhance GitHub Actions workflow for publishing with Python setup and dependency installation --- .github/workflows/publish.yml | 33 ++++++++++++++++++++------------- _quarto.yml | 1 - 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e82eb7b..3c61cc6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/_quarto.yml b/_quarto.yml index 28f96fd..3c61cc6 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -30,4 +30,3 @@ jobs: uses: quarto-dev/quarto-actions/publish@v2 with: target: gh-pages - project: website