notify-pull-request-opened.yml
This workflow will run on every opened
and reopened
pull request.
This workflow exists
It will:
- Send a message to a Google Chat Space with details of the PR
GitHub secrets requirements:
GOOGLE_CHAT_WEBHOOK_URL
This workflow will run with every push to a branch that currently has an active pull request.
This workflow exists because the pull request workflow is responsible for building and deploying the assets to a preview environment for every push. This environment is used to preview the changes before merging the pull request to main. This workflow will deploy items to an ephemeral environment that will be destroyed once the pull request is closed. The environment name will be preview{{PR_NUMBER}}
i.e. preview52.
It will:
- build
- Checkout the code
- Install gitversion
- Generate versiopn number
- Build the Hugo site and create an artifact on the workflow run - please see action.yml for more information
- Archive the site - please see action.yml for more information
- Preview
- Deploy the site to a preview environment in and S3 bucket - please see action.yml for more information
GitHub secrets requirements:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
GitHub variable requirements:
AWS_S3_CICD_BUCKET
AWS_DEFAULT_REGION
This workflow will run on every closed
pull request.
This workflow exists because the pull request workflow is responsible for cleaning up the preview environment that was created when the pull request was raised. The environment name will be preview{{PR_NUMBER}}
i.e. preview52.
It will:
- Remove the site from the S3 bucket
- Delete GitHub environment created for the pull request
GitHub secrets requirements:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
PAT_GITHUB_ACTIONS
GitHub variable requirements:
AWS_S3_CICD_BUCKET
AWS_DEFAULT_REGION
This workflow is manually triggered and is responsible for building and releasing the code when changes are pushed to main.
It will:
- build
- Checkout the code
- Install gitversion
- Generate versiopn number
- Build the Hugo site and create an artifact on the workflow run - please see action.yml for more information
- Archive the site - please see action.yml for more information
- Production
- Pull the website artifact and deploy the site to the production environment in and S3 bucket