Skip to content

Conversation

mamu0
Copy link
Contributor

@mamu0 mamu0 commented Oct 16, 2025

Extended the static assets deploy action to support both Azure Front Door and Azure CDN Classic.

  • Added use_cdn_classic boolean flag to switch between Front Door (default) and CDN Classic
  • Updated action name from "CDN Code Deploy" to "Static Assets Deploy"
  • Moved action from .github/actions/cdn-code-deploy to actions/static-assets-deploy
  • Front Door is now the default service (set use_cdn_classic: true for CDN Classic)
  • Updated all documentation and examples
  • Updated CDN workflow and moved from release-azure-cdn-v1.yaml to release-azure-staticassets-v1.yaml

Resolves: CES-1329

Copy link

changeset-bot bot commented Oct 16, 2025

🦋 Changeset detected

Latest commit: cad8668

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
static-assets-deploy Patch
docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.86%. Comparing base (8abeb56) to head (cad8668).
⚠️ Report is 113 commits behind head on main.

❌ Your project status has failed because the head coverage (45.86%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1000       +/-   ##
===========================================
- Coverage   67.85%   45.86%   -22.00%     
===========================================
  Files          31       49       +18     
  Lines         840     1969     +1129     
  Branches      146      222       +76     
===========================================
+ Hits          570      903      +333     
- Misses        258     1047      +789     
- Partials       12       19        +7     

see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-mud-0405c6703-1000.westeurope.1.azurestaticapps.net

Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-mud-0405c6703-1000.westeurope.1.azurestaticapps.net

default: ''
default: ""
use_cdn_classic:
description: Set to true to use Azure CDN Classic instead of Front Door (default is Front Door).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Set to true to use Azure CDN Classic instead of Front Door (default is Front Door).
description: Set to true to use Azure CDN Classic (deprecated) instead of Front Door (default is Front Door).

@@ -0,0 +1,5 @@
---
"static-assets-deploy": patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: what if someone is using the old action that points to the deleted file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: wouldn't renaming the action result in a breaking change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: what about azure-static-assets-deploy ?

@@ -0,0 +1,143 @@
# Static Assets Deploy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Static Assets Deploy
# Azure Static Assets Deploy

description: Path to the files directory (Default is 'dist')
required: false
default: "dist"
working_directory:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thoughts: what about having just one between working_dir and sync_dir? if we have the full path relative to the root ie.

working_directory/sync_dir_name

we can obtain working_directory and sync_dir_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants