diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4f924d6e7..95bcd55dff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,13 @@ jobs: SENTRY_DSN: ${{ secrets.SENTRY_DSN }} - run: yarn test + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: eu-west-1 + - name: Publish budibase packages to NPM env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/packages/standard-components/scripts/deploy.js b/packages/standard-components/scripts/deploy.js index e0a63d0607..cf94422680 100644 --- a/packages/standard-components/scripts/deploy.js +++ b/packages/standard-components/scripts/deploy.js @@ -4,7 +4,6 @@ const fs = require("fs") const TO_SYNC = "dist/" const BUCKET_LOCATION = "s3://prod-budi-app-assets/assets" -const BASE_PROFILE = "budibase" const S3_COMP_DIR = "@budibase/standard-components/dist" const MANIFEST = "componentlibrary-latest.json" @@ -13,10 +12,6 @@ function buildS3Path() { } async function run() { - let profile = process.env.AWS_PROFILE - if (profile == null) { - profile = BASE_PROFILE - } // basic manifest file describing the latest fs.writeFileSync( MANIFEST, @@ -25,10 +20,8 @@ async function run() { dir: S3_COMP_DIR, }) ) - execSync(`aws s3 sync ${TO_SYNC} ${buildS3Path()} --profile ${profile}`) - execSync( - `aws s3 cp ${MANIFEST} ${BUCKET_LOCATION}/${MANIFEST} --profile ${profile}` - ) + execSync(`aws s3 sync ${TO_SYNC} ${buildS3Path()}`) + execSync(`aws s3 cp ${MANIFEST} ${BUCKET_LOCATION}/${MANIFEST}`) fs.unlinkSync(MANIFEST) }