File tree 3 files changed +99
-43
lines changed
3 files changed +99
-43
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : [ "master" ]
7
+ pull_request :
8
+
9
+ jobs :
10
+
11
+ build :
12
+
13
+ runs-on : windows-latest
14
+
15
+ env :
16
+ Dotnet_Version : 8.0.x
17
+ Project_Path : src\build\Build.csproj
18
+
19
+ steps :
20
+
21
+ # Checkout codes
22
+ - name : Checkout
23
+ uses : actions/checkout@v4
24
+
25
+ # Install the .NET Core workload
26
+ - name : Setup .NET
27
+ uses : actions/setup-dotnet@v4
28
+ with :
29
+ dotnet-version : ${{ env.Dotnet_Version }}
30
+
31
+ # Restore dependencies
32
+ - name : Restore dependencies
33
+ run : dotnet restore ${{ env.Project_Path }}
34
+
35
+ # Build the project
36
+ - name : Build
37
+ run : dotnet build ${{ env.Project_Path }} --configuration Release --no-restore
38
+
39
+ # Execute all unit tests in the solution
40
+ - name : Execute unit tests
41
+ if : github.event_name == 'push' && github.ref != 'refs/heads/main'
42
+ run : dotnet test --configuration Release --no-build
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : [ "master" ]
7
+
8
+ jobs :
9
+
10
+ build :
11
+
12
+ permissions :
13
+ contents : write
14
+
15
+ if : ${{ startsWith(github.event.head_commit.message, 'bump version to') }}
16
+
17
+ runs-on : windows-latest
18
+
19
+ env :
20
+ Dotnet_Version : 8.0.x
21
+ Project_Path : src\build\Build.csproj
22
+
23
+ steps :
24
+
25
+ # Checkout codes
26
+ - name : Checkout
27
+ uses : actions/checkout@v4
28
+
29
+ # Install the .NET Core workload
30
+ - name : Setup .NET
31
+ uses : actions/setup-dotnet@v4
32
+ with :
33
+ dotnet-version : ${{ env.Dotnet_Version }}
34
+ cache : false
35
+
36
+ # Restore dependencies
37
+ - name : Restore dependencies
38
+ run : dotnet restore ${{ env.Project_Path }}
39
+
40
+ # Build the project
41
+ - name : Build
42
+ run : dotnet build ${{ env.Project_Path }} --configuration Release --no-restore
43
+
44
+ # Get package version
45
+ - name : Get Package Version
46
+ id : version
47
+ uses : notiz-dev/github-action-json-property@release
48
+ with :
49
+ path : " src/Flow.Launcher.Plugin.ClipboardPlus/plugin.json"
50
+ prop_path : " Version"
51
+
52
+ # Publish to GitHub releases
53
+ - name : Publish
54
+ uses : softprops/action-gh-release@v2
55
+ with :
56
+ files : " .dist/Clipboard+*.zip"
57
+ tag_name : " v${{ steps.version.outputs.prop }}"
You can’t perform that action at this time.
0 commit comments