Skip to content

Commit

Permalink
Merge pull request #4 from YuehaiTeam/main
Browse files Browse the repository at this point in the history
feat: generate diff for last previous release
  • Loading branch information
huiyadanli authored Jan 25, 2025
2 parents a5cbda4 + 39fd819 commit 15396d2
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,26 @@ jobs:
repository: "YuehaiTeam/kachina-installer"
latest: true
fileName: "kachina-builder.exe"
- name: 📥 Download last release
uses: robinraju/[email protected]
with:
repository: "babalae/better-genshin-impact"
latest: true
fileName: "BetterGI_v*.7z"
out-file-path: 'last'
- name: Unpack Last release
run: |
cd last
7z x "BetterGI*.7z" -otemp
if (Test-Path -Path ".\temp\BetterGI" -PathType Container) {
Move-Item -Path ".\temp\BetterGI" -Destination ".\BetterGI"
} else {
Rename-Item -Path ".\temp" -NewName ".\BetterGI"
}
- name: 📦 Pack kachina-builder
run: |
cd dist
..\kachina-builder.exe gen -i BetterGI -m metadata.json -o hashed -r babalae/bettergi -t ${{ needs.build_dist.outputs.version }} --diff-ignore *[.txt,.onnx]
..\kachina-builder.exe gen -j 6 -i BetterGI -m metadata.json -o hashed -r babalae/bettergi -t ${{ needs.build_dist.outputs.version }} --diff-vers ..\last\BetterGI --diff-ignore *[.txt,.onnx] -u .\BetterGI\BetterGI.update.exe
..\kachina-builder.exe pack -c ../kachina.config.json -m metadata.json -d hashed -o BetterGI.Install.${{ needs.build_dist.outputs.version }}.exe
- name: 📦 Generate archive
run: |
Expand Down Expand Up @@ -175,12 +191,6 @@ jobs:
cd BetterGI
7z a -t7z "..\..\publish.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
uses: robinraju/[email protected]
with:
repository: "lemutec/MicaSetup"
Expand Down

0 comments on commit 15396d2

Please sign in to comment.