fix: deploy Pages only from main

This commit is contained in:
CAtlas0784 committed 2026-10-18 22:42:35 +07:00
1 parent 3575261aa4
commit 141798c629
1 file changed
+2 -1
+2 -1
View File
@@ -2,7 +2,7 @@ name: Deploy GaC-Srtool to GitHub Pages
on: on:
push: push:
branches: ["main", "test-gay"] branches: ["main"]
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -16,6 +16,7 @@ concurrency:
jobs: jobs:
deploy: deploy:
if: github.ref == 'refs/heads/main'
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}