From 16cb4dc6e7eeaf9df810770b7598801c7ffaf7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=93=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=B0=D1=80=D1=8C?= Date: Thu, 18 Jun 2026 06:59:41 +0300 Subject: [PATCH] fix: update GitHub Actions workflow to handle uploads for both GitHub and GitVerse --- .github/workflows/docs.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a1ecbef..0d0f9ee 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -41,18 +41,28 @@ jobs: run: mkdocs build working-directory: doc/lwc-doc - - name: Upload Pages artifact + - name: Upload Pages artifact (GitHub) + if: github.server_url == 'https://github.com' uses: actions/upload-pages-artifact@v3 with: path: doc/lwc-doc/site/ + - name: Upload Pages artifact (GitVerse) + if: github.server_url != 'https://github.com' + uses: gitverse/upload-pages-artifact@v1.0.0 + with: + path: doc/lwc-doc/site/ + deploy: needs: build runs-on: ubuntu-latest environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Deploy to Pages - id: deployment + - name: Deploy to GitHub Pages + if: github.server_url == 'https://github.com' uses: actions/deploy-pages@v4 + + - name: Deploy to GitVerse Pages + if: github.server_url != 'https://github.com' + uses: gitverse/deploy-pages@v1.0.0