Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli authored Jan 23, 2025
1 parent 98081b3 commit 2a8e90b
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ jobs:
}
# 生成更新器
- name: 📥 Download kachina-builder
run: |
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/YuehaiTeam/kachina-installer/releases/latest"
$downloadUrl = $response.assets | Where-Object { $_.name -like "kachina-builder.exe" } | Select-Object -ExpandProperty browser_download_url
$zipFilePath = "kachina-builder.exe"
Invoke-WebRequest -Uri $downloadUrl -OutFile $zipFilePath
uses: robinraju/[email protected]
with:
repository: "YuehaiTeam/kachina-installer"
latest: true
fileName: "kachina-builder.exe"
- name: 📦 Gen Updater by kachina-builder
run: |
cd dist
Expand Down Expand Up @@ -135,12 +135,12 @@ jobs:
run: |
cd dist
7z x "BetterGI_v${{ needs.build_dist.outputs.version }}.7z"
- name: Download kachina-builder
run: |
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/YuehaiTeam/kachina-installer/releases/latest"
$downloadUrl = $response.assets | Where-Object { $_.name -like "kachina-builder.exe" } | Select-Object -ExpandProperty browser_download_url
$zipFilePath = "kachina-builder.exe"
Invoke-WebRequest -Uri $downloadUrl -OutFile $zipFilePath
- name: 📥 Download kachina-builder
uses: robinraju/[email protected]
with:
repository: "YuehaiTeam/kachina-installer"
latest: true
fileName: "kachina-builder.exe"
- name: 📦 Pack kachina-builder
run: |
cd dist
Expand Down Expand Up @@ -172,13 +172,19 @@ jobs:
run: |
cd dist
7z x "BetterGI_v${{ needs.build_dist.outputs.version }}.7z"
- name: Download MicaSetup
run: |
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/lemutec/MicaSetup/releases/latest"
$downloadUrl = $response.assets | Where-Object { $_.name -like "MicaSetup_v*.7z" } | Select-Object -ExpandProperty browser_download_url
$zipFilePath = "MicaSetup.7z"
Invoke-WebRequest -Uri $downloadUrl -OutFile $zipFilePath
7z x $zipFilePath
- name: 📥 Download MicaSetup
# run: |
# $response = Invoke-RestMethod -Uri "https://api.github.com/repos/lemutec/MicaSetup/releases/latest"
# $downloadUrl = $response.assets | Where-Object { $_.name -like "MicaSetup_v*.7z" } | Select-Object -ExpandProperty browser_download_url
# $zipFilePath = "MicaSetup.7z"
# Invoke-WebRequest -Uri $downloadUrl -OutFile $zipFilePath
# 7z x $zipFilePath
uses: robinraju/[email protected]
with:
repository: "lemutec/MicaSetup"
latest: true
fileName: "MicaSetup_v*.7z"
extract: true
- name: 📦 Pack MicaSetup
run: |
7z a -t7z "publish.7z" dist/BetterGI/*
Expand Down

0 comments on commit 2a8e90b

Please sign in to comment.