-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.1 KB
/
build-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
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