Skip to content

Commit

Permalink
build: Update file path in assets json file
Browse files Browse the repository at this point in the history
  • Loading branch information
hazre committed Aug 8, 2024
1 parent 008c296 commit 365b546
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ jobs:
vpk download github --repoUrl ${{ github.server_url }}/${{ github.repository }} --channel win-x64-portable -o releases
vpk [win] pack -u ${{ env.PROJECT }} -v ${{ steps.get-version.outputs.version }} -r win-x64 --channel win-x64-portable --noInst --packTitle win-x64-portable -p publish/win-x64-portable -o releases
mv releases/${{ env.PROJECT }}-win-x64-portable-Portable.zip releases/${{ env.PROJECT }}-win-x64-portable.zip
JSON_FILE="assets.win-x64-portable.json"
json_content=$(cat "$JSON_FILE")
updated_content=${json_content//"ResoniteModUpdater-win-x64-portable-Portable.zip"/"ResoniteModUpdater-win-x64-portable.zip"}
echo "$updated_content" > "$JSON_FILE"
vpk upload github --repoUrl ${{ github.server_url }}/${{ github.repository }} --releaseName "v${{ steps.get-version.outputs.version }}" --tag v${{ steps.get-version.outputs.version }} --channel win-x64-portable -o releases

0 comments on commit 365b546

Please sign in to comment.