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
|
run: mkdocs build
|
||||||
working-directory: doc/lwc-doc
|
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
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: doc/lwc-doc/site/
|
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:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
if: github.server_url == 'https://github.com'
|
||||||
uses: actions/deploy-pages@v4
|
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