Merge pull request #845 from MemPalace/fix/deploy-docs-develop-only
ci: serve docs from develop only
This commit is contained in:
@@ -2,7 +2,7 @@ name: Deploy Docs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, develop]
|
branches: [develop]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/deploy-docs.yml"
|
- ".github/workflows/deploy-docs.yml"
|
||||||
- "website/**"
|
- "website/**"
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
path: website/.vitepress/dist
|
path: website/.vitepress/dist
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
if: github.ref_name == 'develop'
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|||||||
Reference in New Issue
Block a user