Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ‘· Fix docs site workflow

Alicia Sykesd40ade0c8309
diff --git a/.github/workflows/manual-tag.yml b/.github/workflows/manual-tag.yml
index c78ae6c3..3a15e5c6 100644
--- a/.github/workflows/manual-tag.yml
+++ b/.github/workflows/manual-tag.yml
@@ -56,7 +56,7 @@ jobs:
env:
TAG: ${{ steps.version.outputs.TARGET }}
run: |
- git fetch --tags
+ git fetch --tags --force
if git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then
echo "Tag $TAG already exists, skipping"
else
diff --git a/.github/workflows/update-docs-site.yml b/.github/workflows/update-docs-site.yml
index a87ba08c..b839a334 100644
--- a/.github/workflows/update-docs-site.yml
+++ b/.github/workflows/update-docs-site.yml
@@ -16,35 +16,47 @@ on:
# Jobs to be run:
# 1. Checkout master branch
# 2. Checkout website source code branch
-# 3. Install Python
-# 4. Copy /docs from master to website branch
-# 5. Run the script which processes documentation
-# 6. Commit and push updated docs to the website source code branch
+# 3. Install Python and Node.js
+# 4. Install website dependencies (Docusaurus)
+# 5. Copy /docs from master to website branch
+# 6. Run the script which processes documentation and tests the build
+# 7. Commit and push updated docs to the website source code branch
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch πŸ›ŽοΈ
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
with:
path: 'master-docs'
+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- name: Checkout WEBSITE/docs-site-source branch πŸ›ŽοΈ
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
with:
ref: 'WEBSITE/docs-site-source'
path: 'website-docs'
+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- name: Install Python 🐍
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: '3.x'
+ - name: Setup Node.js 🟒
+ uses: actions/setup-node@v4
+ with:
+ node-version: '18'
+
+ - name: Install website dependencies πŸ“¦
+ working-directory: website-docs
+ run: yarn install --frozen-lockfile
+
- name: Run script to update documentation πŸͺ„
working-directory: website-docs
run: |
cp -r ../master-docs/docs ./
- python ./do-markdown-magic.py
+ python ./do-doc-updaty-magic.py
- name: Commit changes πŸš€
run: |