mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Update build.yml
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user