From ecdb0bff6a394e9bed330e9a193d21db126f439a Mon Sep 17 00:00:00 2001 From: ahmathlete Date: Thu, 17 Aug 2023 10:52:43 +0200 Subject: [PATCH] prepare workflow --- .github/workflows/move-published.yml | 12 +++++------- .github/workflows/publish.yml | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/move-published.yml b/.github/workflows/move-published.yml index 6bdd30d..873b620 100644 --- a/.github/workflows/move-published.yml +++ b/.github/workflows/move-published.yml @@ -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 \ No newline at end of file + git commit -am "Move Book to GitHub Pages" + git push origin HEAD:gh-pages \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 14381ed..0f0878d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}