diff --git a/.github/actions/cdn_deployment_aws/action.yaml b/.github/actions/cdn_deployment_aws/action.yaml index b3aedf8..91f45f9 100644 --- a/.github/actions/cdn_deployment_aws/action.yaml +++ b/.github/actions/cdn_deployment_aws/action.yaml @@ -16,6 +16,9 @@ inputs: aws_bucket_name: description: The AWS bucket to sync required: true + deploy_index_html: + description: Deploy a simple index.html file to S3 root + default: 'false' runs: using: 'composite' @@ -39,6 +42,40 @@ runs: shell: bash run: aws s3 sync ./download s3://${{ inputs.aws_bucket_name }} + - name: Create and Deploy Index HTML + if: ${{ inputs.deploy_index_html == 'true' }} + shell: bash + run: | + echo ' + + + + + UID2/EUID SDK Files + + + +

UID2/EUID SDK Files

+

This directory contains the latest SDK files for UID2 and EUID integration.

+
+
+ SDK Files: Available in this directory +
+
+ Documentation: Visit Documentation +
+
+ + ' > index.html + aws s3 cp index.html s3://${{ inputs.aws_bucket_name }}/index.html + - name: Invalidate CloudFront uses: chetan/invalidate-cloudfront-action@v2 env: diff --git a/.github/workflows/publish-package-to-cdn.yml b/.github/workflows/publish-package-to-cdn.yml index 5fae6ba..8ced0ab 100644 --- a/.github/workflows/publish-package-to-cdn.yml +++ b/.github/workflows/publish-package-to-cdn.yml @@ -1,4 +1,4 @@ -name: Release SDK Package to NPM and CDN (v2) +name: Release SDK to NPM and CDN (v2) run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish Pre-release' || format('Release {0}', inputs.release_type)}} SDK Package to NPM and CDN by @${{ github.actor }} on: @@ -128,7 +128,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write - environment: test + environment: uid2-test steps: - uses: actions/checkout@v4 with: @@ -140,12 +140,13 @@ jobs: aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }} aws_bucket_name: ${{ secrets.S3_BUCKET }} aws_distribution_id: ${{ secrets.AWS_DISTRIBUTION_ID }} + deploy_index_html: 'true' approval-to-deploy: name: Approval To Deploy needs: [cdn-deployment-test] runs-on: ubuntu-latest - environment: production + environment: approve-deployment steps: - name: Approval to deploy shell: bash @@ -187,3 +188,4 @@ jobs: aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }} aws_bucket_name: ${{ secrets.S3_BUCKET }} aws_distribution_id: ${{ secrets.AWS_DISTRIBUTION_ID }} + deploy_index_html: 'true' diff --git a/.github/workflows/secureSignal-to-cdn.yaml b/.github/workflows/secureSignal-to-cdn.yaml index 35f8f24..e804260 100644 --- a/.github/workflows/secureSignal-to-cdn.yaml +++ b/.github/workflows/secureSignal-to-cdn.yaml @@ -1,4 +1,4 @@ -name: Release UID2/EUID Secure Signal Package to CDN (Five Environments) +name: Release Secure Signal Package to CDN (v2) run-name: ${{ github.action_ref == 'refs/head/main' && 'Release' || 'Publish Pre-release' }} UID2/EUID Secure Signal Package to CDN (Five Environments) by @${{ github.actor }} on: @@ -64,7 +64,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write - environment: test + environment: uid2-test steps: - uses: actions/checkout@v4 - name: Deploy UID2 Secure Signals to Test CDN @@ -80,14 +80,14 @@ jobs: name: Approval To Deploy to All Environments needs: [deployment-test] runs-on: ubuntu-latest - environment: production + environment: approve-deployment steps: - name: Approval to deploy shell: bash run: echo "Approved for deployment to all environments" # Matrix Deployment for All Environments - deployment-matrix: + cdn-deployment: needs: [build, approval-to-deploy] runs-on: ubuntu-latest permissions: diff --git a/package-lock.json b/package-lock.json index 7793c02..94e9e8f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@uid2/uid2-sdk", - "version": "4.0.39", + "version": "4.0.47-SNAPSHOT", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@uid2/uid2-sdk", - "version": "4.0.39", + "version": "4.0.47-SNAPSHOT", "license": "Apache 2.0", "dependencies": { "axios": "^1.12.0", diff --git a/package.json b/package.json index aec91f4..6d30545 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uid2/uid2-sdk", - "version": "4.0.39", + "version": "4.0.47-SNAPSHOT", "description": "UID2 Client SDK", "author": "The Trade Desk", "repository": {