Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/actions/cdn_deployment_aws/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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 '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UID2/EUID SDK Files</title>
<style>
body { font-family: Arial, sans-serif; margin: 40px; }
h1 { color: #333; }
.file-list { margin: 20px 0; }
.file-item { margin: 10px 0; padding: 10px; background: #f5f5f5; border-radius: 5px; }
.file-link { text-decoration: none; color: #0066cc; font-weight: bold; }
.file-link:hover { text-decoration: underline; }
</style>
</head>
<body>
<h1>UID2/EUID SDK Files</h1>
<p>This directory contains the latest SDK files for UID2 and EUID integration.</p>
<div class="file-list">
<div class="file-item">
<strong>SDK Files:</strong> Available in this directory
</div>
<div class="file-item">
<strong>Documentation:</strong> <a href="https://unifiedid.com/docs/guides/summary-guides" target="_blank" class="file-link">Visit Documentation</a>
</div>
</div>
</body>
</html>' > index.html
aws s3 cp index.html s3://${{ inputs.aws_bucket_name }}/index.html

- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-package-to-cdn.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: test
environment: uid2-test
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -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
Expand Down Expand Up @@ -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'
8 changes: 4 additions & 4 deletions .github/workflows/secureSignal-to-cdn.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down