-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.37 KB
/
main.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
name: .NET
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: setup MS-build
uses: microsoft/setup-msbuild@v1
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: setup MS-build
uses: microsoft/[email protected]
- name: Build
run: msbuild "PlanningCenter to OPS.sln" /t:Restore /p:Configuration=Release /p:Platform="Any CPU"
- name: Run publish
run: dotnet publish -c Release -p:PublishSingleFile=true --self-contained false "PlanningCenter to OPS\\PlanningCenter to OPS.csproj"
- name: release
uses: zendesk/action-create-release@v1
id: create_release
with:
tag_name: Latest
release_name: Latest
draft: false
prerelease: false
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "PlanningCenter to OPS\\bin\\Release\\net8.0-windows\\win-x64\\publish\\PlanningCenter to OPS.exe"
asset_name: "PlanningCenter to OPS.exe"
asset_content_type: application/exe