Skip to content

Update build.yml

Update build.yml #56

Workflow file for this run

name: CI
on:
push:
branches:
- '*' # Trigger on push events for all branches
pull_request:
branches:
- '*' # Trigger on pull request events for all branches
workflow_dispatch: # Trigger for manual runs
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@v3
with:
name: Flow.Launcher.Plugin.LinkOpener.dll
path: "./bin/Release/win-x64/publish/Flow.Launcher.Plugin.LinkOpener.dll"