fix: update GitHub Actions workflow to handle uploads for both GitHub and GitVerse

This commit is contained in:
Даниил Грабарь
2026-06-18 06:59:41 +03:00
parent 985425b866
commit 16cb4dc6e7
+14 -4
View File
@@ -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