Skip to content

Commit

Permalink
Create pr-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Exarilo authored Aug 7, 2024
1 parent 31bf917 commit 2cc4c4d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- '*' # Trigger on push events for all branches
pull_request:
branches:
- '*' # Trigger on push events for all branches

jobs:
build-and-test:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.x'

- name: Restore dependencies
run: dotnet restore ./Flow.Launcher.Plugin.LinkOpener.csproj

- name: Publish project without self-contained
run: dotnet publish -c Release -r win-x64 --no-self-contained ./Flow.Launcher.Plugin.LinkOpener.csproj

# Attach the zip file to the pull request
- name: Upload DLL zip artifact
uses: actions/upload-artifact@v2
with:
name: Flow.Launcher.Plugin.LinkOpener.dll
path: "./bin/Release/win-x64/publish/Flow.Launcher.Plugin.LinkOpener.dll"

0 comments on commit 2cc4c4d

Please sign in to comment.