mirror of
https://github.com/ivabus/www
synced 2024-11-10 06:15:14 +03:00
parent
8419d56ec8
commit
67704b7769
43
.github/workflows/staging.yml
vendored
43
.github/workflows/staging.yml
vendored
|
@ -46,10 +46,7 @@ jobs:
|
|||
cmd: '.github/build-package-pages.sh src/data/packages.json src/content'
|
||||
|
||||
- uses: teaxyz/setup@v0
|
||||
- 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
|
||||
- run: tea -E just ci
|
||||
|
||||
# - name: Check for broken links
|
||||
# uses: lycheeverse/lychee-action@v1
|
||||
|
@ -89,24 +86,24 @@ jobs:
|
|||
|
||||
- name: get cdk bucket
|
||||
id: DEPLOY_BUCKET
|
||||
run: |
|
||||
BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$')
|
||||
echo "bucket=$BUCKET" >> $GITHUB_OUTPUT
|
||||
run: |
|
||||
BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$')
|
||||
echo "bucket=$BUCKET" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: cp package images from prod to preview bucket
|
||||
run: |
|
||||
aws s3 cp s3://www.tea.xyz/Images/packages \
|
||||
s3://$NEW_BUCKET/Images/packages \
|
||||
--recursive
|
||||
env:
|
||||
NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}
|
||||
- name: cp package images from prod to preview bucket
|
||||
run: |
|
||||
aws s3 cp s3://www.tea.xyz/Images/packages \
|
||||
s3://$NEW_BUCKET/Images/packages \
|
||||
--recursive
|
||||
env:
|
||||
NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}
|
||||
|
||||
- name: Seal Deployment
|
||||
uses: bobheadxi/deployments@v1
|
||||
if: always()
|
||||
with:
|
||||
step: finish
|
||||
status: ${{ job.status }}
|
||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
env: ${{ env.STAGE }}
|
||||
env_url: ${{ steps.cdk_deploy.outputs.env_url }}
|
||||
- name: Seal Deployment
|
||||
uses: bobheadxi/deployments@v1
|
||||
if: always()
|
||||
with:
|
||||
step: finish
|
||||
status: ${{ job.status }}
|
||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
env: ${{ env.STAGE }}
|
||||
env_url: ${{ steps.cdk_deploy.outputs.env_url }}
|
||||
|
|
Loading…
Reference in a new issue