mirror of
https://github.com/ivabus/www
synced 2024-11-22 15:25:06 +03:00
Seeing if this fixes staging
This commit is contained in:
parent
b490a9d777
commit
8419d56ec8
1 changed files with 23 additions and 20 deletions
43
.github/workflows/staging.yml
vendored
43
.github/workflows/staging.yml
vendored
|
@ -46,7 +46,10 @@ jobs:
|
||||||
cmd: '.github/build-package-pages.sh src/data/packages.json src/content'
|
cmd: '.github/build-package-pages.sh src/data/packages.json src/content'
|
||||||
|
|
||||||
- uses: teaxyz/setup@v0
|
- uses: teaxyz/setup@v0
|
||||||
- run: tea -E just ci
|
- run: |
|
||||||
|
npx --no-install babel -f scripts/bottles.jsx --out-file=/tmp/compileOut-3679273180.js
|
||||||
|
npx --no-install babel -f scripts/package-bottles.jsx --out-file=/tmp/compileOut-3200062911.js
|
||||||
|
working-directory: src
|
||||||
|
|
||||||
# - name: Check for broken links
|
# - name: Check for broken links
|
||||||
# uses: lycheeverse/lychee-action@v1
|
# uses: lycheeverse/lychee-action@v1
|
||||||
|
@ -86,24 +89,24 @@ jobs:
|
||||||
|
|
||||||
- name: get cdk bucket
|
- name: get cdk bucket
|
||||||
id: DEPLOY_BUCKET
|
id: DEPLOY_BUCKET
|
||||||
run: |
|
run: |
|
||||||
BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$')
|
BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$')
|
||||||
echo "bucket=$BUCKET" >> $GITHUB_OUTPUT
|
echo "bucket=$BUCKET" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: cp package images from prod to preview bucket
|
- name: cp package images from prod to preview bucket
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp s3://www.tea.xyz/Images/packages \
|
aws s3 cp s3://www.tea.xyz/Images/packages \
|
||||||
s3://$NEW_BUCKET/Images/packages \
|
s3://$NEW_BUCKET/Images/packages \
|
||||||
--recursive
|
--recursive
|
||||||
env:
|
env:
|
||||||
NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}
|
NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}
|
||||||
|
|
||||||
- name: Seal Deployment
|
- name: Seal Deployment
|
||||||
uses: bobheadxi/deployments@v1
|
uses: bobheadxi/deployments@v1
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
step: finish
|
step: finish
|
||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
||||||
env: ${{ env.STAGE }}
|
env: ${{ env.STAGE }}
|
||||||
env_url: ${{ steps.cdk_deploy.outputs.env_url }}
|
env_url: ${{ steps.cdk_deploy.outputs.env_url }}
|
||||||
|
|
Loading…
Reference in a new issue