Skip to content

Commit

Permalink
prepare workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahomoudi committed Aug 17, 2023
1 parent f54ae75 commit ecdb0bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/move-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: gh-pages
token: ${{ secrets.PAT }}
ref: book-depoly

- name: Create Book folder
run: |
git branch
ls -R
mkdir -p BookOutput
shopt -s extglob
mv !(BookOutput) BookOutput
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 content to Book folder"
git push
git commit -am "Move Book to GitHub Pages"
git push origin HEAD:gh-pages
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
target: book-depoly
path: QuartoBook
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ecdb0bf

Please sign in to comment.