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
168 changes: 84 additions & 84 deletions .github/actions/cdn_deployment_aws/action.yaml
Original file line number Diff line number Diff line change
@@ -1,84 +1,84 @@
name: CDN Deployment for AWS
description: Deploys to AWS CDN and optionally invalidates the path in CloudFront
inputs:
artifact:
description: Name of the artifact
required: true
invalidate_paths:
description: paths that get invalidated in cloud front
default: ''
aws_account_id:
description: The AWS account id
required: true
aws_distribution_id:
description: The CloudFront description id
required: true
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'
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::${{ inputs.aws_account_id }}:role/github-runner-for-cdn
- name: Check Identity
shell: bash
run: aws sts get-caller-identity
- uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact }}
path: ./download
- name: Deploy
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@cacab256f2bd90d1c04447a7d6afdaf6f346e7b3 # v2
env:
DISTRIBUTION: ${{ inputs.aws_distribution_id }}
PATHS: ${{ inputs.invalidate_paths }}
AWS_REGION: us-east-2
name: CDN Deployment for AWS
Comment thread
mcollins-ttd marked this conversation as resolved.
description: Deploys to AWS CDN and optionally invalidates the path in CloudFront
inputs:
artifact:
description: Name of the artifact
required: true
invalidate_paths:
description: paths that get invalidated in cloud front
default: ''
aws_account_id:
description: The AWS account id
required: true
aws_distribution_id:
description: The CloudFront description id
required: true
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'

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::${{ inputs.aws_account_id }}:role/github-runner-for-cdn

- name: Check Identity
shell: bash
run: aws sts get-caller-identity

- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: ${{ inputs.artifact }}
path: ./download

- name: Deploy
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@cacab256f2bd90d1c04447a7d6afdaf6f346e7b3 # v2
env:
DISTRIBUTION: ${{ inputs.aws_distribution_id }}
PATHS: ${{ inputs.invalidate_paths }}
AWS_REGION: us-east-2
16 changes: 8 additions & 8 deletions .github/workflows/build-sdk-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
node-version: [20.x]
target: [development, production]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: ${{ needs.incrementVersionNumber.outputs.git_tag_or_hash }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- name: Get Package Version
Expand All @@ -51,14 +51,14 @@ jobs:

# Upload SDK artifacts for CDN
- name: Upload UID2 SDK artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Comment thread
mcollins-ttd marked this conversation as resolved.
with:
name: uid2SDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
path: ./dist/uid2-sdk-${{ steps.version.outputs.package_version }}.js
retention-days: 30

- name: Upload EUID SDK artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: euidSDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
path: ./dist/euid-sdk-${{ steps.version.outputs.package_version }}.js
Expand All @@ -67,15 +67,15 @@ jobs:
# Upload NPM package artifacts
- name: Upload UID2 NPM package
if: matrix.target == 'production'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: uid2-npm-package-${{ steps.version.outputs.package_version }}
path: ./dist/uid2-npm/
retention-days: 30

- name: Upload EUID NPM package
if: matrix.target == 'production'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: euid-npm-package-${{ steps.version.outputs.package_version }}
path: ./dist/euid-npm/
Expand All @@ -92,15 +92,15 @@ jobs:
steps:
- name: Build Changelog
id: github_release_changelog
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
uses: mikepenz/release-changelog-builder-action@348e88fab4c37338b1e803ceb2d4a7a5db6c0833 # v6.2.2
with:
toTag: v${{ needs.incrementVersionNumber.outputs.new_version }}
configurationJson: |
{
"pr_template": " - #{{TITLE}} - ( PR: ##{{NUMBER}} )"
}
- name: Create Release Notes
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
with:
name: v${{ needs.incrementVersionNumber.outputs.new_version }}
body: ${{ steps.github_release_changelog.outputs.changelog }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build-secure-signal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
uid2_modified: ${{ steps.verify_uid2.outputs.any_modified }}
euid_modified: ${{ steps.verify_euid.outputs.any_modified }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Check for change to src/secureSignalUid2.ts
id: verify_uid2
uses: tj-actions/changed-files@716b1e13042866565e00e85fd4ec490e186c4a2f # v41
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: src/secureSignalUid2.ts
- name: Check for change to src/secureSignalEuid.ts
id: verify_euid
uses: tj-actions/changed-files@716b1e13042866565e00e85fd4ec490e186c4a2f # v41
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: src/secureSignalEuid.ts

Expand All @@ -35,9 +35,9 @@ jobs:
target: [development, production]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
Comment thread
mcollins-ttd marked this conversation as resolved.
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -49,15 +49,15 @@ jobs:

# Upload UID2 Secure Signals Files
- name: Upload UID2 Secure Signals Files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.target }}Uid2SecureSignalScript
path: ./dist/uid2SecureSignal.js
retention-days: 30

# Upload EUID Secure Signals Files
- name: Upload EUID Secure Signals Files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.target }}EuidSecureSignalScript
path: ./dist/euidSecureSignal.js
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down