Merge pull request #29 from RoboJackets/renovate/aws-5.x #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build Main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-artifact: | |
name: Build Artifact | |
uses: ./.github/workflows/build-artifact.yml | |
terraform-apply: | |
name: Build CloudFront Environment | |
uses: ./.github/workflows/terraform-apply.yml | |
cloudfront-deploy: | |
name: Deploy to CloudFront | |
uses: ./.github/workflows/cloudfront-deploy.yml | |
needs: | |
- build-artifact | |
- terraform-apply | |
with: | |
cloudfront_domain: ${{ needs.terraform-apply.outputs.cloudfront_domain }} | |
cloudfront_distribution_id: ${{ needs.terraform-apply.outputs.cloudfront_distribution_id }} | |
s3_bucket_name: ${{ needs.terraform-apply.outputs.s3_bucket_name }} | |
deploy-github-pages: | |
name: Deploy to GitHub Pages | |
runs-on: ubuntu-24.04 | |
needs: build-artifact | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: https://bpm.robojackets.org | |
concurrency: | |
group: deploy-github-pages | |
cancel-in-progress: false | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |