Skip to content

Commit ec3348e

Browse files
committed
update connection string syntax
1 parent 9051459 commit ec3348e

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Azure Static Web Apps CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- v5.0
7+
pull_request:
8+
types: [opened, synchronize, reopened, closed]
9+
branches:
10+
- v5.0
11+
12+
jobs:
13+
build_and_deploy_job:
14+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
15+
runs-on: ubuntu-latest
16+
name: Build and Deploy Job
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
- name: Build And Deploy Database
22+
uses: azure/sql-action@v1.3
23+
with:
24+
connection-string: ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
25+
project-file: './database/declarative-deploy/todo_v5/todo_v5.sqlproj'
26+
build-arguments: '-c Release'
27+
- name: Build And Deploy Static Web App
28+
id: builddeploy
29+
uses: Azure/static-web-apps-deploy@v1
30+
with:
31+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
32+
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
33+
action: "upload"
34+
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
35+
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
36+
app_location: "./client" # App source code path
37+
api_location: "./api" # Api source code path - optional
38+
output_location: "" # Built app content directory - optional
39+
###### End of Repository/Build Configurations ######
40+
41+
close_pull_request_job:
42+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
43+
runs-on: ubuntu-latest
44+
name: Close Pull Request Job
45+
steps:
46+
- name: Close Pull Request
47+
id: closepullrequest
48+
uses: Azure/static-web-apps-deploy@v1
49+
with:
50+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
51+
action: "close"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ConnectionString="SERVER=.database.windows.net;DATABASE=;UID=;PWD=;"
1+
ConnectionString="Server=.database.windows.net;Initial Catalog=;User Id=;Password=;"

0 commit comments

Comments
 (0)