mirror of
https://github.com/Pathoschild/SMAPI.git
synced 2026-10-12 02:08:51 +00:00
move build zip rename into script
This commit is contained in:
@@ -87,9 +87,6 @@ jobs:
|
||||
Write-Host "Building SMAPI $env:VERSION."
|
||||
./build/scripts/prepare-install-package.ps1 "$env:VERSION"
|
||||
|
||||
- name: Rename build zip
|
||||
run: mv "bin/SMAPI ${{env.VERSION}} installer.zip" "bin/SMAPI-${{env.VERSION}}-installer.zip"
|
||||
|
||||
- name: Upload installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -101,10 +98,10 @@ jobs:
|
||||
uses: ncipollo/release-action@v1
|
||||
if: github.ref_type == 'tag'
|
||||
with:
|
||||
artifacts: 'bin/SMAPI-${{env.VERSION}}*.zip'
|
||||
artifacts: 'bin/SMAPI-${{env.VERSION}}-installer.zip'
|
||||
token: '${{secrets.GITHUB_TOKEN}}'
|
||||
tag: '${{github.ref_name}}'
|
||||
name: "${{env.VERSION}}"
|
||||
name: '${{env.VERSION}}'
|
||||
body: |
|
||||
Draft.
|
||||
draft: true
|
||||
|
||||
@@ -283,7 +283,7 @@ foreach ($folder in $folders) {
|
||||
###########
|
||||
Move-Item "$packagePath" "bin/SMAPI $version installer"
|
||||
|
||||
Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI $version installer.zip" -CompressionLevel Optimal
|
||||
Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI-$version-installer.zip" -CompressionLevel Optimal
|
||||
|
||||
Write-Output ""
|
||||
Write-Output "Done! Package created in ${pwd.Path}/bin."
|
||||
|
||||
Reference in New Issue
Block a user