@davoodmehraban89 / LifeMate / commits / 0d6523d
Fork 0

LifeMate — Personal, Family & Learning Companion

ci(pages): isolate QA deployment environment without loosening default branch protection

davoodmehraban89 committed Oct 15, 2026 at 09:58 UTC 0d6523dc6f1059e98934edbf5516da385165cb54
1 file changed +4 -1
.github/workflows/lifeguide-github-pages-qa.yml
+4 -1
@@ -38,13 +38,16 @@ jobs:
38
39 deploy:
40 needs: build
41 + # GitHub automatically protects the default github-pages environment for
42 + # its default branch. Keep that protection untouched and use isolated QA.
43 + if: github.event_name == 'push' && github.ref == 'refs/heads/infra/lifeguide-github-pages-qa'
44 runs-on: ubuntu-latest
45 permissions:
46 contents: read
47 pages: write
48 id-token: write
49 environment:
47 - name: github-pages
50 + name: lifeguide-pages-qa
51 url: ${{ steps.deployment.outputs.page_url }}
52 steps:
53 - name: Publish only LifeGuide QA static site