Skip to content

Commit 1a06742

Browse files
authored
Create pr-check.yaml
1 parent 554385d commit 1a06742

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/pr-check.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*' # Trigger on push events for all branches
7+
pull_request:
8+
branches:
9+
- '*' # Trigger on pull request events for all branches
10+
workflow_dispatch: # Trigger for manual runs
11+
12+
jobs:
13+
build-and-test:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v1
22+
with:
23+
dotnet-version: '7.x'
24+
25+
- name: Restore dependencies
26+
run: dotnet restore ./Flow.Launcher.Plugin.AppUpgrader.csproj
27+
28+
- name: Publish project without self-contained
29+
run: dotnet publish -c Release -r win-x64 --no-self-contained ./Flow.Launcher.Plugin.AppUpgrader.csproj
30+
31+
# Attach the zip file to the pull request
32+
- name: Upload DLL zip artifact
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: Flow.Launcher.Plugin.AppUpgrader.dll
36+
path: "./bin/Release/win-x64/publish/Flow.Launcher.Plugin.AppUpgrader.dll"
37+

0 commit comments

Comments
 (0)