Skip to content

ci: add Azure Static Web Apps workflow file#10

Open
taidangduc wants to merge 6 commits intomasterfrom
release
Open

ci: add Azure Static Web Apps workflow file#10
taidangduc wants to merge 6 commits intomasterfrom
release

Conversation

@taidangduc
Copy link
Copy Markdown
Owner

on-behalf-of: @Azure opensource@microsoft.com
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Actions workflow to build and deploy the React UI to Azure Static Web Apps on release branch pushes and PR events, including a cleanup job when PRs are closed.

Changes:

  • Introduces an Azure Static Web Apps CI/CD workflow targeting the release branch.
  • Adds a build+deploy job for pushes and active PRs, plus a close job for closed PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

types: [opened, synchronize, reopened, closed]
branches:
- release

Comment on lines +18 to +25
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
steps:
- uses: actions/checkout@v3
with:
submodules: true
@@ -0,0 +1,46 @@
name: Azure Static Web Apps CI/CD
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WITTY_GRASS_02274F41E }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
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.

2 participants