ci: add Azure Static Web Apps workflow file#10
Open
taidangduc wants to merge 6 commits intomasterfrom
Open
Conversation
on-behalf-of: @Azure opensource@microsoft.com
There was a problem hiding this comment.
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
releasebranch. - 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) |
Added environment variable for API base URL in the build job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
on-behalf-of: @Azure opensource@microsoft.com