Skip to content

Commit 277ec84

Browse files
pegvinfelipemanga
authored andcommitted
Conditionally Deploy To Web
only deploy on root repo on push or merge and not on forks
1 parent 6dcd229 commit 277ec84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/c-cpp-emscripten.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636

3737
# Deployment job
3838
deploy:
39+
if: |
40+
github.repository == 'libresprite/dotto' &&
41+
github.event_name == 'push' ||
42+
github.event.pull_request.merged == true
3943
environment:
4044
name: github-pages
4145
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)