Skip to content

Commit e5a637a

Browse files
committed
added deploy script
1 parent 24a9263 commit e5a637a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to Azure
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
targetEnv: dev
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@main
16+
17+
- name: Log in to Azure
18+
uses: azure/[email protected]
19+
with:
20+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
21+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
22+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
23+
enable-AzPSSession: true
24+
25+
- name: Deploy ARM Template
26+
uses: azure/arm-deploy@v1
27+
with:
28+
scope: subscription
29+
template: ./src/InfrastructureAsCode/main.bicep
30+
deployment-name: arm-deployment
31+
parameters: environment=${{ env.targetEnv }}

src/Application/src/RazorPagesTestSample/Data/Message.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class Message
99

1010
[Required]
1111
[DataType(DataType.Text)]
12-
[StringLength(250, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")]
12+
[StringLength(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message.")]
1313
public string Text { get; set; }
1414
}
1515
#endregion

0 commit comments

Comments
 (0)