Skip to content

Commit 3941ed2

Browse files
committed
fix: keep synthetic demo green before Pages setup
1 parent a6ac77a commit 3941ed2

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/demo.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
branches: [main]
66
workflow_dispatch:
7+
inputs:
8+
deploy:
9+
description: Deploy after GitHub Pages has been enabled in repository settings
10+
required: false
11+
default: false
12+
type: boolean
713

814
permissions:
915
contents: read
@@ -32,18 +38,21 @@ jobs:
3238
ZAATI_BASE_PATH: /${{ github.event.repository.name }}/
3339
run: npm run build
3440
- run: npm run performance:check
35-
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
41+
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
3642
with:
3743
path: dist
3844

3945
deploy:
46+
if: vars.ZAATI_ENABLE_DEMO_PAGES == 'true' || (github.event_name == 'workflow_dispatch' && inputs.deploy)
4047
needs: build
4148
runs-on: ubuntu-24.04
4249
timeout-minutes: 10
4350
environment:
4451
name: github-pages
4552
url: ${{ steps.deployment.outputs.page_url }}
4653
steps:
54+
- name: Configure GitHub Pages
55+
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
4756
- name: Publish synthetic demo
4857
id: deployment
49-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
58+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

0 commit comments

Comments
 (0)