Now publishes on commit to main branch

This commit is contained in:
Nathan Schneider
2025-06-25 13:00:31 -07:00
parent 8d96346186
commit 70131b40a5
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -69,7 +69,8 @@ The site documents case studies, legal snippets, and resources related to "Exit
4. Visit http://localhost:1313
### Deployment
Set up deployment following: https://git.medlab.host/dhorn/medlab-hugo-template
To deploy changes, simply push them to the `main` branch and they should automatically publish.
## External Dependencies
- Hugo static site generator