-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.22 KB
/
ci.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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: setup-msbuild
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2
with:
msbuild-architecture: x64
- run: |
msbuild /t:restore /p:configuration=release /p:platform="Any CPU" ppt-diffmerge.sln
name: restore
- run: |
msbuild /t:build /p:configuration=release /p:platform="Any CPU" ppt-diffmerge.sln
name: build
- run: |
cd ./ppt-diffmerge-tool/bin/Release/
7z a ppt-diffmerge.zip -tzip
name: Zip Artifact
- run: |
gh release delete latest --yes --cleanup-tag
git tag latest HEAD --force
git push origin --tags --force
gh release create latest --generate-notes --latest --title "Development Build" ./ppt-diffmerge-tool/bin/Release/ppt-diffmerge.zip
name: Create Release
env:
GH_TOKEN: ${{ github.token }}
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'