Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix quarto publishing pages #518

Merged
merged 4 commits into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- main
- master
- test

jobs:
docker:
Expand Down Expand Up @@ -47,15 +48,17 @@ jobs:
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
website:
name: Render website
if: "!contains(github.event.commits[0].message, '[skip ci]')"
needs: docker
runs-on: ubuntu-latest
container: inseefrlab/utilitr:latest
steps:
- name: Checkout Repository
env:
GITHUB_PAT: ${{ secrets.PAT }}
uses: actions/checkout@master
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install Dependencies
run: |
Rscript -e "install.packages(c('remotes'))"
Expand All @@ -65,17 +68,15 @@ jobs:
GITHUB_PAT: ${{ secrets.PAT }}
- name: Render Book
run: |
ls
git remote -v
git config --global user.email [email protected]
git config --global user.name "Quarto GHA Workflow Runner"
git config --global --add safe.directory /__w/utilitR/utilitR
quarto render
quarto render --to html
quarto publish gh-pages --no-render --no-browser
- uses: actions/upload-artifact@v2
with:
name: _public
path: _public/
retention-days: 5
- name: Publish to GitHub Pages (and render)
run: |
git config --global user.email [email protected]
git config --global user.name "Quarto GHA Workflow Runner"
quarto publish gh-pages . --no-render --no-browser
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading