Skip to content

Commit

Permalink
unfuck actions yml
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Oct 20, 2020
1 parent 18c35bb commit 5294455
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 30 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ dotnet_separate_import_directive_groups = false

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
60 changes: 30 additions & 30 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[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@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/[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@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

0 comments on commit 5294455

Please sign in to comment.