fix fastboot and more #91
Workflow file for this run
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 Core Desktop | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
environment: NuGet | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-latest | |
env: | |
Solution_Name: ATA-GUI.sln | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
- name: Restore NuGet packages | |
run: nuget restore $env:Solution_Name | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
- name: Build the solution | |
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration | |
env: | |
Configuration: ${{ matrix.configuration }} | |
- name: Prepare package | |
shell: bash | |
run: | | |
release_name="ATA-GUI" | |
release_path="D:/a/ATA-GUI/ATA-GUI/ATA-GUI/bin/Release/" | |
7z a -tzip "${release_name}.zip" "${release_path}Newtonsoft.Json.dll" "${release_path}ATA-GUI.exe" "${release_path}DotNetZip.dll" "D:/a/ATA-GUI/ATA-GUI/LICENSE" | |
- name: Get Previous tag | |
id: previoustag | |
uses: "WyriHaximus/[email protected]" | |
- name: Create Release | |
uses: ncipollo/[email protected] | |
with: | |
generateReleaseNotes: true | |
artifacts: ATA-GUI.zip | |
name: ${{steps.previoustag.outputs.tag}} | |
tag: ${{steps.previoustag.outputs.tag}} | |
token: ${{ secrets.GITHUB_TOKEN }} |