Skip to content

Commit

Permalink
fix: setup prerelease for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue committed Feb 28, 2024
1 parent 4c7b1bb commit 8dafb59
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
const ref = process.env.GITHUB_REF_NAME
const s3BucketSecretNames = {
"main": "DEV_CDN_S3_BUCKET",
"beta": "DEV_STAGING_CDN_S3_BUCKET",
"alpha": "DEV_STAGING_CDN_S3_BUCKET",
}
const cdnIdSecretNames = {
"main": "DEV_CDN_DISTRIBUTION_ID",
"beta": "DEV_STAGING_CDN_DISTRIBUTION_ID",
"alpha": "DEV_STAGING_CDN_DISTRIBUTION_ID",
}
const releaseJson = require("./.releaserc.json");
const branches = releaseJson.branches.map(e => e.name? e.name : e);
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ jobs:
"main-dev": "DEV_CDN_S3_BUCKET",
"main-test": "TEST_CDN_S3_BUCKET",
"main-prod": "PROD_CDN_S3_BUCKET",
"beta-dev": "DEV_STAGING_CDN_S3_BUCKET",
"beta-test": "TEST_STAGING_CDN_S3_BUCKET",
"beta-prod": "STAGING_CDN_S3_BUCKET",
"alpha-dev": "DEV_STAGING_CDN_S3_BUCKET",
"alpha-test": "TEST_STAGING_CDN_S3_BUCKET",
"alpha-prod": "STAGING_CDN_S3_BUCKET",
}
const cdnIdSecretNames = {
"main-dev": "DEV_CDN_DISTRIBUTION_ID",
"main-test": "TEST_CDN_DISTRIBUTION_ID",
"main-prod": "PROD_CDN_DISTRIBUTION_ID",
"beta-dev": "DEV_STAGING_CDN_DISTRIBUTION_ID",
"beta-test": "TEST_STAGING_CDN_DISTRIBUTION_ID",
"beta-prod": "STAGING_CDN_DISTRIBUTION_ID",
"alpha-dev": "DEV_STAGING_CDN_DISTRIBUTION_ID",
"alpha-test": "TEST_STAGING_CDN_DISTRIBUTION_ID",
"alpha-prod": "STAGING_CDN_DISTRIBUTION_ID",
}
const releaseJson = require("./.releaserc.json");
const version = process.env.VERSION_TO_DEPLOY
Expand Down Expand Up @@ -150,8 +150,8 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_KEY_ID_PROD }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_PROD }}
aws-access-key-id: ${{ secrets.AWS_KEY_ID_DEV }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_DEV }}
aws-region: us-east-1
- name: Copy front end resources to s3 bucket
run: |
Expand Down
5 changes: 5 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"name": "v1",
"prerelease": true,
"channel": "beta"
},
{
"name": "v2",
"prerelease": true,
"channel": "alpha"
}
],
"plugins": [
Expand Down

0 comments on commit 8dafb59

Please sign in to comment.