-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (57 loc) · 1.86 KB
/
deploy-code-website.yaml
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
51
52
53
54
55
56
57
58
59
60
---
name: Website Theme Deployment
permissions:
id-token: write
contents: write
on:
workflow_dispatch:
inputs:
deploy-environment:
type: choice
description: Environment
required: true
default: "dev"
options:
- dev
- staging
- live
release:
type: string
description: Release
required: false
default: ""
jobs:
deployment-run-dev:
if: ${{ inputs.deploy-environment == 'dev' }}
uses: nationalarchives/ds-github-actions/.github/workflows/website-theme-deploy.yml@main
with:
deploy-repo: "${{ github.event.repository.name }}"
deploy-environment: "${{ inputs.deploy-environment }}"
release: "${{ inputs.release }}"
branch: "${{ inputs.branch }}"
github-environment: "dev-deploy"
secrets:
AWS_ROLE_ARN: ${{ secrets.AWS_WEBSITE_ROLE_ARN_DEV }}
deployment-run-staging:
if: ${{ inputs.deploy-environment == 'staging' }}
uses: nationalarchives/ds-github-actions/.github/workflows/website-theme-deploy.yml@main
with:
deploy-repo: "${{ github.event.repository.name }}"
deploy-environment: "${{ inputs.deploy-environment }}"
release: "${{ inputs.release }}"
branch: "${{ inputs.branch }}"
github-environment: "staging-deploy"
secrets:
AWS_ROLE_ARN: ${{ secrets.AWS_WEBSITE_ROLE_ARN_STAGING }}
deployment-run-live:
if: ${{ inputs.deploy-environment == 'live' }}
uses: nationalarchives/ds-github-actions/.github/workflows/website-theme-deploy.yml@main
with:
deploy-repo: "${{ github.event.repository.name }}"
deploy-environment: "${{ inputs.deploy-environment }}"
release: "${{ inputs.release }}"
branch: "${{ inputs.branch }}"
github-environment: "live-deploy"
secrets:
AWS_ROLE_ARN: ${{ secrets.AWS_WEBSITE_ROLE_ARN_LIVE }}
...