updated workflow #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: Build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
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 |