-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (31 loc) · 1.01 KB
/
build-and-deploy.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
name: Build and deploy Chavah
on:
push:
branches:
- master
workflow_dispatch:
# If this workflow is already running, cancel it.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Build with dotnet
run: dotnet build Chavah.NetCore\Chavah.NetCore.csproj --configuration Release
- name: Write publish profile to directory
uses: DamianReeves/[email protected]
with:
path: ${{ env.home }}/ChavahOnVm.pubxml
contents: |
${{ secrets.PUBLISH_PROFILE }}
write-mode: overwrite
- name: dotnet publish
run: dotnet publish -c Release -o Publish /p:PublishProfileFullPath=${{ env.home }}/ChavahOnVm.pubxml