-
Notifications
You must be signed in to change notification settings - Fork 4.4k
64 lines (48 loc) · 1.85 KB
/
master_SenparcWeixinSampleNetCore3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy ASP app to Azure Web App - senparcweixinsamplenetcore3(senparcweixinsamplenet5)
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: 'windows-latest'
steps:
- uses: actions/checkout@master
- name: Setup MSBuild path
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Set up .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.301'
- name: Set up .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.100'
- name: Set up .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.302'
#- name: CMD1
# run: dir
#`n cd ./Samples/net6-mvc/ `n dir `n nuget restore `n msbuild /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\"
#- name: CMD2
# run: cd ./Samples/net6-mvc/
#- name: CMD3
# run: dir
- name: Restore NuGet packages
run: nuget restore "./Samples/All/net7-mvc/"
#-SolutionDirectory ./Samples/All/net7-mvc/
- name: Publish to folder
run: msbuild "Samples/All/net7-mvc/Senparc.Weixin.Sample.Net7.sln" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\"
#- name: Deploy to Azure Web App
# uses: azure/webapps-deploy@v2
# with:
# app-name: 'senparcweixinsamplenetcore3'
# slot-name: 'senparcweixinsamplenet5'
# publish-profile: ${{ secrets.AzureAppService_PublishProfile_3ee3a42f0a324bf7be968d8c232a8555 }}
# package: \published\