Now publishes on commit to main branch
This commit is contained in:
@@ -30,7 +30,7 @@ build_site:
|
||||
# Define when this job runs (e.g., only on the main branch)
|
||||
# Adjust 'only' or 'rules' as needed for your workflow
|
||||
only:
|
||||
- publish # the script will only run on the branch 'publish'
|
||||
- main # the script will only run on the branch 'main'
|
||||
|
||||
# Job to deploy the built site using cloudron-surfer
|
||||
deploy_site:
|
||||
@@ -58,5 +58,5 @@ deploy_site:
|
||||
public/* /
|
||||
- echo "Deployment completed successfully"
|
||||
only:
|
||||
- publish # Example: Run only on the main branch
|
||||
- main # Example: Run only on the main branch
|
||||
|
||||
|
Reference in New Issue
Block a user