Skip to content

Commit 93891cf

Browse files
committed
move build zip rename into script
1 parent d40cbde commit 93891cf

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/build-smapi.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ jobs:
8787
Write-Host "Building SMAPI $env:VERSION."
8888
./build/scripts/prepare-install-package.ps1 "$env:VERSION"
8989
90-
- name: Rename build zip
91-
run: mv "bin/SMAPI ${{env.VERSION}} installer.zip" "bin/SMAPI-${{env.VERSION}}-installer.zip"
92-
9390
- name: Upload installer
9491
uses: actions/upload-artifact@v4
9592
with:
@@ -101,10 +98,10 @@ jobs:
10198
uses: ncipollo/release-action@v1
10299
if: github.ref_type == 'tag'
103100
with:
104-
artifacts: 'bin/SMAPI-${{env.VERSION}}*.zip'
101+
artifacts: 'bin/SMAPI-${{env.VERSION}}-installer.zip'
105102
token: '${{secrets.GITHUB_TOKEN}}'
106103
tag: '${{github.ref_name}}'
107-
name: "${{env.VERSION}}"
104+
name: '${{env.VERSION}}'
108105
body: |
109106
Draft.
110107
draft: true

build/scripts/prepare-install-package.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ foreach ($folder in $folders) {
283283
###########
284284
Move-Item "$packagePath" "bin/SMAPI $version installer"
285285

286-
Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI $version installer.zip" -CompressionLevel Optimal
286+
Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI-$version-installer.zip" -CompressionLevel Optimal
287287

288288
Write-Output ""
289289
Write-Output "Done! Package created in ${pwd.Path}/bin."

0 commit comments

Comments
 (0)