Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
maehr committed Jun 2, 2024
1 parent 27bd8cd commit 89dfcc3
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/quarto-publish-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
on:
push:
branches:
- main
workflow_dispatch:

name: Render and Publish

permissions:
contents: write
pages: write

jobs:
build-deploy:
runs-on: macos-latest

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

- name: Overwrite _quarto.yml
if: github.repository == 'maehr/open-research-data-template'
run: |
cp .github/_quarto.yml _quarto.yml
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tinytex: true

- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
path: manuscript
to: all

- name: Install Chromium
run: |
brew install --cask chromium
- name: Convert html to pdf with Chromium
run: |
/Applications/Chromium.app/Contents/MacOS/Chromium --headless --disable-gpu --print-to-pdf=manuscript/_manuscript/handbuch-diskriminierungsfreie-metadaten.pdf --scale=1.0 --no-pdf-header-footer --print-background --virtual-time-budget=10000 file:///$(pwd)/manuscript/_manuscript/index.html
- name: Publish to GitHub Pages
uses: quarto-dev/quarto-actions/publish@v2
with:
path: manuscript
target: gh-pages
render: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 89dfcc3

Please sign in to comment.