Skip to content

Publish

Publish #2

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: Publish
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: |
dotnet restore --packages .nuget --runtime win-x64
- name: Build
run: |
dotnet build --configuration Release --no-restore
- name: Publish
run: |
dotnet publish -c Release -r win-x64
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
# name: # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: ${{ github.workspace }}/bin/Release/net8.0/win-x64/publish/**/*
# The desired behavior if no files are found using the provided path.
# if-no-files-found: # optional, default is warn