File tree 4 files changed +51
-14
lines changed
Properties/PublishProfiles
4 files changed +51
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ release :
9
+ name : Release
10
+ strategy :
11
+ matrix :
12
+ kind : ['windows']
13
+ include :
14
+ - kind : windows
15
+ os : windows-latest
16
+ target : win-x64
17
+ runs-on : ${{ matrix.os }}
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v3
21
+ - name : Setup dotnet
22
+ uses : actions/setup-dotnet@v2
23
+ with :
24
+ dotnet-version : 6.0.x
25
+ - name : Build
26
+ shell : bash
27
+ run : |
28
+ tag=$(git describe --tags --abbrev=0)
29
+ release_name="GitTimelapseView-$tag-${{ matrix.target }}"
30
+
31
+ # Build everything
32
+ dotnet publish GitTimelapseView/GitTimelapseView.csproj --framework net6.0-windows --runtime "${{ matrix.target }}" -c Release -o "$release_name"
33
+
34
+ # Pack files
35
+ if [ "${{ matrix.target }}" == "win-x64" ]; then
36
+ # Pack to zip for Windows
37
+ 7z a -tzip "${release_name}.zip" "./${release_name}/*"
38
+ else
39
+ tar czvf "${release_name}.tar.gz" "$release_name"
40
+ fi
41
+
42
+ # Delete output directory
43
+ rm -r "$release_name"
44
+ - name : Publish
45
+ uses : softprops/action-gh-release@v1
46
+ with :
47
+ files : " GitTimelapseView-*"
48
+ env :
49
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 19
19
<AppendTargetFrameworkToOutputPath >false</AppendTargetFrameworkToOutputPath >
20
20
<DefaultItemExcludes >$(DefaultItemExcludes);publish/**/*</DefaultItemExcludes >
21
21
<Nullable >enable</Nullable >
22
+ <IsPackable >false</IsPackable >
22
23
</PropertyGroup >
23
24
24
25
<PropertyGroup Condition =" '$(BuildingInsideVisualStudio)' == 'true'" >
Original file line number Diff line number Diff line change 4
4
<OutputType >WinExe</OutputType >
5
5
<UseWPF >true</UseWPF >
6
6
<ApplicationIcon >Wpf\Resources\appicon.ico</ApplicationIcon >
7
+ <IsPackable >true</IsPackable >
7
8
</PropertyGroup >
8
9
9
10
<ItemGroup >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments