Skip to content

Quarto Orginse

Quarto Orginse #12

# Only trigger, when the build workflow succeeded
on:
workflow_run:
workflows: ["Quarto Publish"]
types:
- completed
name: Quarto Orginse
jobs:
build-orginse:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: book-depoly
- name: Create Book folder
run: |
git branch
ls -R
mkdir -p gh-pages/quartobook
cp -R * gh-pages/quartobook
- name: Commit and push changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git commit -am "Move Book to GitHub Pages"
git push origin HEAD:gh-pages