Skip to content

Commit e49c23f

Browse files
committed
Test workflow
1 parent 19843c3 commit e49c23f

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name: Build and Deploy Internal Website
44

55
on:
6+
pull_request:
7+
branches:
8+
- main
69
# Runs on pushes to the 'main' branch
710
push:
811
branches: [main]
@@ -11,28 +14,41 @@ on:
1114
workflow_dispatch:
1215

1316
jobs:
14-
build_and_deploy_internal_existing:
15-
name: Build and Deploy Internal Existing
17+
# build_and_deploy_internal_existing:
18+
# name: Build and Deploy Internal Existing
19+
# uses: ./.github/workflows/deploy.yml
20+
# permissions:
21+
# id-token: write
22+
# contents: read
23+
# with:
24+
# environment: internal
25+
# target: internal-existing
26+
# secrets:
27+
# AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_INTERNAL }}
28+
# HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
29+
30+
build_and_deploy_internal:
31+
name: Build and Deploy Internal
1632
uses: ./.github/workflows/deploy.yml
1733
permissions:
1834
id-token: write
1935
contents: read
2036
with:
2137
environment: internal
22-
target: internal-existing
38+
target: internal
2339
secrets:
2440
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_INTERNAL }}
2541
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
2642

27-
build_and_deploy_internal:
28-
name: Build and Deploy Internal
43+
build_and_deploy_production:
44+
name: Build and Deploy Production
2945
uses: ./.github/workflows/deploy.yml
3046
permissions:
3147
id-token: write
3248
contents: read
3349
with:
34-
environment: internal
35-
target: internal
50+
environment: production
51+
target: production
3652
secrets:
37-
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_INTERNAL }}
53+
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_PRODUCTION }}
3854
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}

0 commit comments

Comments
 (0)