Skip to content

Adds CI workflow

Adds CI workflow #5

Workflow file for this run

name: Build and Package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore src/TerminalBackgroundRotator.csproj
- name: Build
run: dotnet build src/TerminalBackgroundRotator.csproj --configuration Release --no-restore
- name: Publish
run: dotnet publish src/TerminalBackgroundRotator.csproj --configuration Release --output publish --no-restore
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: TerminalBackgroundRotator
path: publish