From 73df4d98d64d1bdc9346827d7b4795d8bb761ba9 Mon Sep 17 00:00:00 2001 From: Peter MIKOLA Date: Fri, 23 Aug 2024 14:39:35 +0200 Subject: [PATCH] wip refact working doc workflow --- .github/workflows/doc.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 49ae3c51..70d01643 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -54,29 +54,27 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Download `doc` - uses: actions/download-artifact@v4 - with: - name: doc - path: artifact - - name: Checkout `docs` repository uses: actions/checkout@v4 with: repository: versotile-org/docs.versotile.org ssh-key: ${{ secrets.DOCS_DEPLOY_KEY }} - path: docs + ref: docs + + - name: Download `doc` + uses: actions/download-artifact@v4 + with: + name: doc + path: artifact - name: Configure git, commit changes and PUSH run: | - cd docs/ git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' - git fetch origin docs:docs - git checkout docs -- rm -r docs/* - mv ../artifact/* docs/ + cp -r artifact/* docs/ git add docs/ + git fetch origin main:main git checkout main docs/ git status git commit -m ":rocket: update docs from \`verso\` repository"