我怎么感觉好像应该是这样才对 #469
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: Build Check | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
include-prerelease: true | |
- name: Reset Tags | |
run: git fetch --tags | |
- name: Clean 1 | |
run: dotnet clean WFBot.sln --configuration "Windows Release" && dotnet nuget locals all --clear | |
- name: Clean 2 | |
run: dotnet clean WFBot.sln --configuration "Linux Release" && dotnet nuget locals all --clear | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Linux Build | |
run: dotnet publish WFBot -c "Linux Release" -o LinuxPublish --self-contained false |