diff --git a/.cdk/lib/tea.xyz.ts b/.cdk/lib/tea.xyz.ts index 1cf3d53..13dc0ff 100644 --- a/.cdk/lib/tea.xyz.ts +++ b/.cdk/lib/tea.xyz.ts @@ -9,8 +9,6 @@ import { RemovalPolicy, CfnOutput } from "aws-cdk-lib"; import { Construct } from "constructs"; -import fs from "fs"; -import path from "path"; /** * The CloudFormation stack holding all our resources @@ -26,10 +24,6 @@ export default class TeaXYZ extends Stack { autoDeleteObjects: true, removalPolicy: RemovalPolicy.DESTROY, }); - console.log("BUCKET ARN:", bucket.bucketArn) - fs.writeFile(path.join(process.cwd(), "bucket.txt"), bucket.bucketName, () => { - console.log('bucket name shared'); - }) const edgeLambda = lambda.Version.fromVersionArn(this, "Lambda", "arn:aws:lambda:us-east-1:640264234305:function:www-redirect:10"); diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index d063b9c..32d60ae 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -92,12 +92,18 @@ jobs: run: yarn deploy working-directory: .cdk - - run: cat .cdk/cdk.out.json + - uses: 8BitJonny/gh-get-current-pr@2.1.3 + id: PR + + - name: get cdk bucket + run: | + aws s3 ls | grep teaxyz-pr-${{ steps.PR.outputs.number }} + # sync images from www.tea.xyz/Images/packages to wherever bucket you are - - run: | - aws s3 sync s3://www.tea.xyz/Images/packages \ - s3://TeaXYZ-${STAGE}/Images/packages + # - run: | + # aws s3 sync s3://www.tea.xyz/Images/packages \ + # s3://TeaXYZ-${STAGE}/Images/packages - name: Seal Deployment uses: bobheadxi/deployments@v1