Skip to content

Commit

Permalink
updates page deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert van Geest committed Mar 21, 2024
1 parent a58152c commit 6cf81c3
Showing 1 changed file with 44 additions and 9 deletions.
53 changes: 44 additions & 9 deletions .github/workflows/render-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,51 @@ on:
branches:
- master

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
docker:
# Single deploy job since we're just deploying
publish-site:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
container: geertvangeest/single-cell-rstudio:latest
permissions:
contents: write
container:
image: geertvangeest/single-cell-rstudio:latest
steps:
- uses: actions/checkout@v4
- name: Publish to GitHub Pages (and render)
- name: Checkout
uses: actions/checkout@v4

- name: Build site
run: |
quarto publish gh-pages . --no-browser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
quarto render
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

# jobs:
# docker:
# runs-on: ubuntu-latest
# container: geertvangeest/single-cell-rstudio:latest
# permissions:
# contents: write
# steps:
# - uses: actions/checkout@v4
# - name: Publish to GitHub Pages (and render)
# run: |
# quarto publish gh-pages . --no-browser
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions

0 comments on commit 6cf81c3

Please sign in to comment.