This commit is contained in:
J. Fronny 2020-03-16 16:36:00 +01:00 committed by GitHub
parent 735b7b7806
commit cb0ca09ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,14 +9,9 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup NuGet
uses: nuget/setup-nuget@v1.0.2
with:
nuget-version: latest
- name: Build - name: Build
id: base_init id: base_init
run: | run: |
nuget restore
$(new-object System.Net.WebClient).DownloadFile("https://www.github.com/JFronny/UpTool2/releases/latest/download/Tools.zip", "$($(pwd).Path)\Tools.zip") $(new-object System.Net.WebClient).DownloadFile("https://www.github.com/JFronny/UpTool2/releases/latest/download/Tools.zip", "$($(pwd).Path)\Tools.zip")
& "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip & "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip
rm Tools.zip rm Tools.zip
@ -49,7 +44,6 @@ jobs:
asset_name: package.zip asset_name: package.zip
asset_content_type: application/zip asset_content_type: application/zip
- name: Generate XML - name: Generate XML
id: make_xml
run: | run: |
$file = Get-Item $(Resolve-Path *\bin\Release\netcoreapp3.1\*.exe).Path $file = Get-Item $(Resolve-Path *\bin\Release\netcoreapp3.1\*.exe).Path
$asm = [Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll") $asm = [Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll")
@ -66,7 +60,6 @@ jobs:
echo NULL > app.xml echo NULL > app.xml
$xml.save($(gi .\app.xml).Fullname) $xml.save($(gi .\app.xml).Fullname)
- name: Upload XML - name: Upload XML
id: upload_xml
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1.0.2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}