diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f516020..beef4100 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,20 +21,31 @@ jobs: - name: Submodule shell: pwsh run: | - New-Item -ItemType Directory -Name release + New-Item -ItemType Directory -Name release | Out-Null Set-Location release Invoke-WebRequest -Uri ${{ env.NetchDataURL }} -OutFile data.zip Invoke-WebRequest -Uri ${{ env.NetchModeURL }} -OutFile mode.zip Invoke-WebRequest -Uri ${{ env.NetchI18NURL }} -OutFile i18n.zip - Expand-Archive -Force -Path data.zip -DestinationPath bin + Expand-Archive -Force -Path data.zip -DestinationPath . Expand-Archive -Force -Path mode.zip -DestinationPath . Expand-Archive -Force -Path i18n.zip -DestinationPath . Get-Item * - Remove-Item -Force README.md + New-Item -ItemType Directory -Name bin | Out-Null + New-Item -ItemType Directory -Name mode | Out-Null + New-Item -ItemType Directory -Name i18n | Out-Null + + Copy-Item -Recurse -Force .\NetchData-master\* .\bin + Copy-Item -Recurse -Force .\NetchMode-master\mode\* .\mode + Copy-Item -Recurse -Force .\NetchTranslation-master\i18n\* .\i18n + + + Remove-Item -Recurse -Force NetchData-master + Remove-Item -Recurse -Force NetchMode-master + Remove-Item -Recurse -Force NetchTranslation-master Remove-Item -Force data.zip Remove-Item -Force mode.zip Remove-Item -Force i18n.zip