Skip to content

Commit 20aed31

Browse files
committed
use rules instead of only
1 parent 1a5c8a3 commit 20aed31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ deploy:
1414
script:
1515
# Adjust the deployment strategy here; e.g., for GitLab Pages:
1616
- mv ./.output/public public
17-
only:
18-
- main
17+
rules:
18+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1919
pages:
2020
publish: public

0 commit comments

Comments
 (0)