Skip to content

Commit bce94c7

Browse files
authored
Merge pull request #65 from AxonJsLabs/update-docs-workflow
chore(workflow): update docs workflow
2 parents 7ccb26c + 8fc56d4 commit bce94c7

33 files changed

Lines changed: 13 additions & 4479 deletions

.github/workflows/docs.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,22 @@ jobs:
2727
- name: Build documentation
2828
run: npm run doc
2929

30+
- name: Clean up and prepare docs
31+
run: |
32+
# Create a temporary directory
33+
mkdir -p temp_docs
34+
# Copy only the built documentation
35+
cp -r docs/* temp_docs/
36+
# Remove all other files
37+
rm -rf *
38+
# Move the documentation back
39+
mv temp_docs/* .
40+
rm -rf temp_docs
41+
3042
- name: Deploy to docs branch
3143
uses: peaceiris/actions-gh-pages@v3
3244
with:
3345
github_token: ${{ secrets.NPM_GITHUB_TOKEN }}
3446
publish_dir: ./
3547
publish_branch: docs
36-
commit_message: ${{ github.event.head_commit.message }}
48+
commit_message: "docs: update documentation"

docs/.nojekyll

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/assets/highlight.css

Lines changed: 0 additions & 120 deletions
This file was deleted.

docs/assets/icons.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)