Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoodWhizz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avanish Singh
FoodWhizz
Commits
ba9bf46f
Commit
ba9bf46f
authored
1 year ago
by
Avanish Singh
Browse files
Options
Downloads
Patches
Plain Diff
ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure opensource@microsoft.com
parent
d6972f11
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/azure-static-web-apps-black-hill-0243f8610.yml
+46
-0
46 additions, 0 deletions
.../workflows/azure-static-web-apps-black-hill-0243f8610.yml
with
46 additions
and
0 deletions
.github/workflows/azure-static-web-apps-black-hill-0243f8610.yml
0 → 100644
+
46
−
0
View file @
ba9bf46f
name
:
Azure Static Web Apps CI/CD
on
:
push
:
branches
:
-
main
pull_request
:
types
:
[
opened
,
synchronize
,
reopened
,
closed
]
branches
:
-
main
jobs
:
build_and_deploy_job
:
if
:
github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on
:
ubuntu-latest
name
:
Build and Deploy Job
steps
:
-
uses
:
actions/checkout@v3
with
:
submodules
:
true
lfs
:
false
-
name
:
Build And Deploy
id
:
builddeploy
uses
:
Azure/static-web-apps-deploy@v1
with
:
azure_static_web_apps_api_token
:
${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_HILL_0243F8610 }}
repo_token
:
${{ secrets.GITHUB_TOKEN }}
# Used for Github integrations (i.e. PR comments)
action
:
"
upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location
:
"
/"
# App source code path
api_location
:
"
"
# Api source code path - optional
output_location
:
"
build"
# Built app content directory - optional
###### End of Repository/Build Configurations ######
close_pull_request_job
:
if
:
github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on
:
ubuntu-latest
name
:
Close Pull Request Job
steps
:
-
name
:
Close Pull Request
id
:
closepullrequest
uses
:
Azure/static-web-apps-deploy@v1
with
:
azure_static_web_apps_api_token
:
${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_HILL_0243F8610 }}
action
:
"
close"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment