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