Skip to content

Commit 5014083

Browse files
authored
Publish github pages only on push into the main branch
1 parent a88c8c8 commit 5014083

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Publish Application on GitHub Pages
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- main
6+
37
jobs:
48
# Build job
59
build:
@@ -48,4 +52,4 @@ jobs:
4852
steps:
4953
- name: Deploy to GitHub Pages
5054
id: deployment
51-
uses: actions/deploy-pages@v4
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)