mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-03 17:53:14 +00:00
fix(cd): run deploy scripts from the workflow SHA
An old content ref has no upload/verify scripts. Copy those from github.workflow_sha so dispatch of a live SHA can finish.
This commit is contained in:
parent
95f0342271
commit
c99273d3fc
1 changed files with 25 additions and 0 deletions
25
.github/workflows/deploy-web.yaml
vendored
25
.github/workflows/deploy-web.yaml
vendored
|
|
@ -15,6 +15,10 @@ name: Deploy Web
|
||||||
#
|
#
|
||||||
# Bucket and distribution come from SSM after assuming the Environment's
|
# Bucket and distribution come from SSM after assuming the Environment's
|
||||||
# DEPLOY_ROLE_ARN. Nothing here creates an HCP run. Quality gates live in CI.
|
# DEPLOY_ROLE_ARN. Nothing here creates an HCP run. Quality gates live in CI.
|
||||||
|
#
|
||||||
|
# The SPA checkout is the resolved content ref. Deploy scripts are copied
|
||||||
|
# from github.workflow_sha so workflow_dispatch of an older SHA still runs
|
||||||
|
# the current upload/verify path.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -131,6 +135,27 @@ jobs:
|
||||||
echo "sha=${sha}" >> "${GITHUB_OUTPUT}"
|
echo "sha=${sha}" >> "${GITHUB_OUTPUT}"
|
||||||
echo "Building ${sha}"
|
echo "Building ${sha}"
|
||||||
|
|
||||||
|
- name: Checkout workflow deploy scripts
|
||||||
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
with:
|
||||||
|
ref: ${{ github.workflow_sha }}
|
||||||
|
persist-credentials: false
|
||||||
|
sparse-checkout: |
|
||||||
|
scripts
|
||||||
|
sparse-checkout-cone-mode: true
|
||||||
|
path: .workflow-scripts
|
||||||
|
|
||||||
|
- name: Install workflow deploy scripts
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
test -f .workflow-scripts/scripts/upload-sourcemaps.sh
|
||||||
|
test -f .workflow-scripts/scripts/verify-cloudfront-release.sh
|
||||||
|
test -f .workflow-scripts/scripts/summarize-cloudfront-live-state.sh
|
||||||
|
mkdir -p scripts
|
||||||
|
cp .workflow-scripts/scripts/upload-sourcemaps.sh scripts/
|
||||||
|
cp .workflow-scripts/scripts/verify-cloudfront-release.sh scripts/
|
||||||
|
cp .workflow-scripts/scripts/summarize-cloudfront-live-state.sh scripts/
|
||||||
|
|
||||||
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue