@@ -16,6 +16,9 @@ inputs:
1616 aws_bucket_name :
1717 description : The AWS bucket to sync
1818 required : true
19+ deploy_index_html :
20+ description : Deploy a simple index.html file to S3 root
21+ default : ' false'
1922runs :
2023 using : ' composite'
2124
3942 shell : bash
4043 run : aws s3 sync ./download s3://${{ inputs.aws_bucket_name }}
4144
45+ - name : Create and Deploy Index HTML
46+ if : ${{ inputs.deploy_index_html == 'true' }}
47+ shell : bash
48+ run : |
49+ echo '<!DOCTYPE html>
50+ <html lang="en">
51+ <head>
52+ <meta charset="UTF-8">
53+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
54+ <title>UID2/EUID SDK Files</title>
55+ <style>
56+ body { font-family: Arial, sans-serif; margin: 40px; }
57+ h1 { color: #333; }
58+ .file-list { margin: 20px 0; }
59+ .file-item { margin: 10px 0; padding: 10px; background: #f5f5f5; border-radius: 5px; }
60+ .file-link { text-decoration: none; color: #0066cc; font-weight: bold; }
61+ .file-link:hover { text-decoration: underline; }
62+ </style>
63+ </head>
64+ <body>
65+ <h1>UID2/EUID SDK Files</h1>
66+ <p>This directory contains the latest SDK files for UID2 and EUID integration.</p>
67+ <div class="file-list">
68+ <div class="file-item">
69+ <strong>SDK Files:</strong> Available in this directory
70+ </div>
71+ <div class="file-item">
72+ <strong>Documentation:</strong> <a href="https://unifiedid.com/docs" target="_blank" class="file-link">Visit Documentation</a>
73+ </div>
74+ </div>
75+ </body>
76+ </html>' > index.html
77+ aws s3 cp index.html s3://${{ inputs.aws_bucket_name }}/index.html
78+
4279 - name : Invalidate CloudFront
4380 uses : chetan/invalidate-cloudfront-action@v2
4481 env :
4582 DISTRIBUTION : ${{ inputs.aws_distribution_id }}
46- PATHS : ${{ inputs.invalidate_paths }}
83+ PATHS : ${{ inputs.deploy_index_html == 'true' && format('{0} /index.html', inputs.invalidate_paths) || inputs. invalidate_paths }}
4784 AWS_REGION : us-east-2
0 commit comments