Clean up
This commit is contained in:
parent
735b7b7806
commit
cb0ca09ce8
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@ -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 }}
|
||||||
|
Reference in New Issue
Block a user