mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-09 06:52:38 +12:00
unfuck actions yml
This commit is contained in:
parent
18c35bb70f
commit
5294455fdd
|
@ -14,3 +14,6 @@ dotnet_separate_import_directive_groups = false
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
|
60
.github/workflows/dotnet.yml
vendored
60
.github/workflows/dotnet.yml
vendored
|
@ -2,33 +2,33 @@ name: .NET Build
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Setup msbuild
|
- name: Setup msbuild
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: msbuild -t:restore
|
run: msbuild -t:restore
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: msbuild ModAssistant/ModAssistant.csproj /t:Build /p:Configuration=Release
|
run: msbuild ModAssistant/ModAssistant.csproj /t:Build /p:Configuration=Release
|
||||||
- name: Cleanup release
|
- name: Cleanup release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
find "ModAssistant/bin/Release" -type f ! -name "ModAssistant.exe" -delete
|
find "ModAssistant/bin/Release" -type f ! -name "ModAssistant.exe" -delete
|
||||||
cp "LICENSE" "ModAssistant/bin/Release/LICENSE.ModAssistant.txt"
|
cp "LICENSE" "ModAssistant/bin/Release/LICENSE.ModAssistant.txt"
|
||||||
- name: Upload Build
|
- name: Upload Build
|
||||||
if: startsWith(github.ref, 'refs/tags/') == false
|
if: startsWith(github.ref, 'refs/tags/') == false
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ModAssistant-${{ github.sha }}
|
name: ModAssistant-${{ github.sha }}
|
||||||
path: ./ModAssistant/bin/Release/
|
path: ./ModAssistant/bin/Release/
|
||||||
- name: Release
|
- name: Release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: Mod Assistant ${{ github.ref }}
|
name: Mod Assistant ${{ github.ref }}
|
||||||
files: ./ModAssistant/bin/Release/ModAssistant.exe
|
files: ./ModAssistant/bin/Release/ModAssistant.exe
|
||||||
|
|
Loading…
Reference in a new issue