Skip to content

GitHub CI

GitHub CI #2

Workflow file for this run

name: GitHub CI
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- released
workflow_dispatch:
jobs:
build:
name: Build
runs-on: windows-latest
defaults:
run:
shell: pwsh
strategy:
matrix:
platform: [net-x64]
include:
- platform: net-x64
package-name: net-win64
build-dir: net8.0-windows\win-x64\publish
steps:
- uses: actions/checkout@v4.1.7
with:
submodules: true
- uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.x
dotnet-quality: ga
- uses: microsoft/setup-msbuild@v2.0.0
- name: Build
run: dotnet build DotNetFileInfo
- name: Create output directory
run: New-Item -ItemType Directory -Path C:\builtfiles\DotNetFileInfo -Force > $null
continue-on-error: true
- name: Copy release files for upload
run: Copy-Item -Path DotNetFileInfo\bin\Release\net8.0-windows\* -Destination C:\builtfiles\DotNetFileInfo -Recurse
- uses: actions/upload-artifact@v4.3.3
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
with:
name: DotNetFileInfo
path: C:\builtfiles\DotNetFileInfo
if-no-files-found: error
compression-level: 9