From 64869d01e572d07ce5376044a10bd9a5eb5f5314 Mon Sep 17 00:00:00 2001 From: AdamBurnettNA Date: Tue, 24 Jan 2023 14:57:27 +0000 Subject: [PATCH] Added a GH Actions yaml file for website --- .github/workflows/deploy-code-website.yaml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/deploy-code-website.yaml diff --git a/.github/workflows/deploy-code-website.yaml b/.github/workflows/deploy-code-website.yaml new file mode 100644 index 0000000..03f78f1 --- /dev/null +++ b/.github/workflows/deploy-code-website.yaml @@ -0,0 +1,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 }} +...