Fix Pats & Headpats buttons in About menu (#551) #405
This file contains hidden or 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 Build | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup msbuild | |
| uses: microsoft/[email protected] | |
| - 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@v3 | |
| with: | |
| name: ModAssistant-${{ github.sha }} | |
| path: ./ModAssistant/bin/Release/ | |
| - name: Extract Release Version | |
| if: startsWith(github.ref, 'refs/tags/') | |
| id: get_version | |
| shell: bash | |
| run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
| - name: Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| name: Mod Assistant v${{ steps.get_version.outputs.version }} | |
| files: ./ModAssistant/bin/Release/ModAssistant.exe |