fix: update GitHub Actions workflow to handle uploads for both GitHub and GitVerse
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user