From 5294455fddea4f122d0a4d730cce36a7a10d9828 Mon Sep 17 00:00:00 2001 From: Jack Baron Date: Tue, 20 Oct 2020 20:50:00 +0100 Subject: [PATCH] unfuck actions yml --- .editorconfig | 3 ++ .github/workflows/dotnet.yml | 60 ++++++++++++++++++------------------ 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/.editorconfig b/.editorconfig index 191a51d..5a270d5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,3 +14,6 @@ dotnet_separate_import_directive_groups = false [*.md] trim_trailing_whitespace = false + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 03e2a20..1c1d1a8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -2,33 +2,33 @@ name: .NET Build on: [push] jobs: - build: - runs-on: windows-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup msbuild - uses: microsoft/setup-msbuild@v1.0.2 - - name: Install dependencies - run: msbuild -t:restore - - name: Build project - run: msbuild ModAssistant/ModAssistant.csproj /t:Build /p:Configuration=Release - - name: Cleanup release - shell: bash - run: | - find "ModAssistant/bin/Release" -type f ! -name "ModAssistant.exe" -delete - cp "LICENSE" "ModAssistant/bin/Release/LICENSE.ModAssistant.txt" - - name: Upload Build - if: startsWith(github.ref, 'refs/tags/') == false - uses: actions/upload-artifact@v2 - with: - name: ModAssistant-${{ github.sha }} - path: ./ModAssistant/bin/Release/ - - name: Release - if: startsWith(github.ref, 'refs/tags/') - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - name: Mod Assistant ${{ github.ref }} - files: ./ModAssistant/bin/Release/ModAssistant.exe + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup msbuild + uses: microsoft/setup-msbuild@v1.0.2 + - name: Install dependencies + run: msbuild -t:restore + - name: Build project + run: msbuild ModAssistant/ModAssistant.csproj /t:Build /p:Configuration=Release + - name: Cleanup release + shell: bash + run: | + find "ModAssistant/bin/Release" -type f ! -name "ModAssistant.exe" -delete + cp "LICENSE" "ModAssistant/bin/Release/LICENSE.ModAssistant.txt" + - name: Upload Build + if: startsWith(github.ref, 'refs/tags/') == false + uses: actions/upload-artifact@v2 + with: + name: ModAssistant-${{ github.sha }} + path: ./ModAssistant/bin/Release/ + - name: Release + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + name: Mod Assistant ${{ github.ref }} + files: ./ModAssistant/bin/Release/ModAssistant.exe