Update Luna.csproj #40
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
name: .NET | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build Luna/Luna.csproj --no-restore --configuration Release | |
# - name: Test | |
# run: dotnet test Luna/Luna.csproj --no-build --verbosity normal | |
- name: Publish | |
run: dotnet publish Luna/Luna.csproj --configuration Release --framework net8.0-windows7.0 --output Luna/bin/Release/net8.0-windows/win10-x64/publish/ --runtime win10-x64 --self-contained true | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Luna-win-x64 | |
path: Luna/bin/Release/net8.0-windows/win10-x64/publish/ | |
retention-days: 1 |