Skip to content

Commit

Permalink
wip refact working doc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikopet committed Aug 23, 2024
1 parent e0cec16 commit 73df4d9
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 73df4d9

Please sign in to comment.