Skip to content

Update CI config

Update CI config #35

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on: [push]
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet publish -r win-x64 --sc
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: chihuahua
path: ${{github.workspace}}/bin/Release/net8.0/win-x64/publish/*.*
if-no-files-found: error
- name: Compress artifacts
if: startsWith(github.ref, 'refs/tags/')
run: 7z a ${{github.workspace}}/chihuahua.zip ${{github.workspace}}/bin/Release/net8.0/win-x64/publish/*.*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: chihuahua.zip