Skip to content

Commit

Permalink
Try renaming file before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmattryan committed Nov 16, 2024
1 parent c3617c8 commit 04ade61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ jobs:

- name: Upload to Cloud Storage
run: |
for file in *.{dmg,exe}; do mv -- "$file" "$(echo "$file" | sed 's/-/ /g')"; done
gcloud storage cp "**/*.dmg" "gs://${{ secrets.GOOGLE_CLOUD_STORAGE_BUCKET }}/${{ env.STAGE }}"
gcloud storage cp "**/*.exe" "gs://${{ secrets.GOOGLE_CLOUD_STORAGE_BUCKET }}/${{ env.STAGE }}"
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/reusable.package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
echo "VST3_PATH=${{ inputs.plugin_name }}.vst3" >> $GITHUB_ENV
echo "AU_PATH=${{ inputs.plugin_name }}.component" >> $GITHUB_ENV
echo "ARTIFACT_NAME=${{ inputs.plugin_name }}-${{ inputs.plugin_version }}-${{ runner.os }}" >> $GITHUB_ENV
echo "INSTALLER_NAME=${{ inputs.plugin_name}} ${{ inputs.plugin_version }} Installer" >> $GITHUB_ENV
echo "MAC_INSTALLER_NAME=${{ inputs.plugin_name}}\ ${{ inputs.plugin_version }}\ Installer" >> $GITHUB_ENV
echo "MAC_INSTALLER_NAME=${{ inputs.plugin_name}}-${{ inputs.plugin_version }}-Installer" >> $GITHUB_ENV
echo "WIN_INSTALLER_NAME=${{ inputs.plugin_name}} ${{ inputs.plugin_version }} Installer" >> $GITHUB_ENV
- name: Import Certificates (MacOS)
Expand Down Expand Up @@ -96,17 +95,17 @@ jobs:
mv packaging/build/signed/${{ inputs.plugin_name }}.pkg packaging/dmg
# Create the .dmg
cd packaging && appdmg dmg.json "${{ env.MAC_INSTALLER_NAME }}.dmg"
codesign -s "${{ secrets.DEVELOPER_ID_APP }}" --timestamp -i ${{ inputs.plugin_bundle_id }} --force "${{ env.MAC_INSTALLER_NAME }}.dmg"
xcrun notarytool submit "${{ env.MAC_INSTALLER_NAME }}.dmg" --apple-id ${{ secrets.APPLE_NOTARIZATION_USERNAME }} --password ${{ secrets.APPLE_NOTARIZATION_PASSWORD }} --team-id ${{ secrets.DEVELOPER_TEAM_ID }} --wait
xcrun stapler staple "${{ env.MAC_INSTALLER_NAME }}.dmg"
cd packaging && appdmg dmg.json "${{ env.INSTALLER_NAME }}.dmg"
codesign -s "${{ secrets.DEVELOPER_ID_APP }}" --timestamp -i ${{ inputs.plugin_bundle_id }} --force "${{ env.INSTALLER_NAME }}.dmg"
xcrun notarytool submit "${{ env.INSTALLER_NAME }}.dmg" --apple-id ${{ secrets.APPLE_NOTARIZATION_USERNAME }} --password ${{ secrets.APPLE_NOTARIZATION_PASSWORD }} --team-id ${{ secrets.DEVELOPER_TEAM_ID }} --wait
xcrun stapler staple "${{ env.INSTALLER_NAME }}.dmg"
- name: Upload Installer (MacOS)
if: ${{ runner.os == 'macOS' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.MAC_INSTALLER_NAME }}
path: packaging/${{ env.MAC_INSTALLER_NAME }}.dmg
name: ${{ env.INSTALLER_NAME }}
path: packaging/${{ env.INSTALLER_NAME }}.dmg

- name: Cache IPP (Windows)
if: ${{ runner.os == 'Windows' }}
Expand Down Expand Up @@ -134,11 +133,11 @@ jobs:
if: ${{ runner.os == 'Windows' }}
run: |
iscc "packaging\${{ inputs.plugin_name }}.iss"
mv "packaging\Output\${{ env.WIN_INSTALLER_NAME }}.exe" .
mv "packaging\Output\${{ env.INSTALLER_NAME }}.exe" .
- name: Upload Installer (Windows)
if: ${{ runner.os == 'Windows' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.WIN_INSTALLER_NAME }}
path: ${{ env.WIN_INSTALLER_NAME }}.exe
name: ${{ env.INSTALLER_NAME }}
path: ${{ env.INSTALLER_NAME }}.exe

0 comments on commit 04ade61

Please sign in to comment.