Skip to content

Commit

Permalink
Try different rename strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmattryan committed Nov 16, 2024
1 parent 283abc0 commit 16b198b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ jobs:
echo "STAGE=$STAGE" >> $GITHUB_ENV
echo "STAGE_VERSION=$STAGE_VERSION" >> $GITHUB_ENV
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV
echo "WINDOWS_ARTIFACT_NAME=$PLUGIN_NAME-$PLUGIN_VERSION-Windows" >> $GITHUB_ENV
echo "MACOS_ARTIFACT_NAME=$PLUGIN_NAME-$PLUGIN_VERSION-macOS" >> $GITHUB_ENV
echo "INSTALLER_NAME_HYPHENATED=$PLUGIN_NAME-$PLUGIN_VERSION-Installer" >> $GITHUB_ENV
echo "INSTALLER_NAME_SPACED=$PLUGIN_NAME $PLUGIN_VERSION Installer" >> $GITHUB_ENV
- name: Check Tag & Version
run: |
Expand Down Expand Up @@ -114,9 +113,11 @@ 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 }}"
ls
mv "${{ env.INSTALLER_NAME_HYPHENATED }}/${{ env.INSTALLER_NAME_HYPHENATED }}.dmg" "./${{ env.INSTALLER_NAME_SPACED }}.dmg"
gcloud storage cp "${{ env.INSTALLER_NAME_SPACED }}.dmg" "gs://${{ secrets.GOOGLE_CLOUD_STORAGE_BUCKET }}/${{ env.STAGE }}"
mv "${{ env.INSTALLER_NAME_HYPHENATED }}/${{ env.INSTALLER_NAME_HYPHENATED }}.exe" "./${{ env.INSTALLER_NAME_SPACED }}.exe"
gcloud storage cp "${{ env.INSTALLER_NAME_SPACED }}.exe" "gs://${{ secrets.GOOGLE_CLOUD_STORAGE_BUCKET }}/${{ env.STAGE }}"
- name: Prepare Body
run: |
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 "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
echo "INSTALLER_NAME=${{ inputs.plugin_name}}-${{ inputs.plugin_version }}-Installer" >> $GITHUB_ENV
- name: Import Certificates (MacOS)
uses: apple-actions/import-codesign-certs@v3
Expand Down Expand Up @@ -95,17 +94,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 @@ -133,11 +132,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 16b198b

Please sign in to comment.