Skip to content

Commit 7e58365

Browse files
authored
Update deployment.yml
1 parent 9b965f3 commit 7e58365

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

.github/workflows/deployment.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,25 @@ jobs:
3434
3535
- name: Package the .app into a .zip file
3636
run: |
37-
ARCHIVE_PATH="./build/Release/HDF5QL.app"
38-
ZIP_PATH="./build/HDF5QL-${{ matrix.architecture }}.zip"
39-
zip -r $ZIP_PATH $ARCHIVE_PATH
37+
cd build/Release/
38+
zip -r HDF5QL-${{ matrix.target }}.app.zip HDF5QL.app
39+
mv HDF5QL-${{ matrix.target }}.app.zip $GITHUB_WORKSPACE/
4040
4141
- name: Extract and package the .appex extension
4242
run: |
43-
echo "🔍 Searching for .appex bundle..."
44-
appex_path=$(find ./build -type d -name "*.appex" | head -n 1)
45-
46-
if [ -d "$appex_path" ]; then
47-
echo "✅ Found .appex at: $appex_path"
48-
zip -r "./build/HDF5QLExtension-${{ matrix.architecture }}.zip" "$appex_path"
49-
else
50-
echo "❌ .appex bundle not found. Check build configuration or path."
51-
exit 1
52-
fi
43+
cd build/Release/HDF5QL.app/Contents/Plugins/
44+
zip -r HDF5QLExtension-${{ matrix.target }}.appex.zip HDF5QLExtension.appex
45+
mv HDF5QLExtension-${{ matrix.target }}.appex.zip $GITHUB_WORKSPACE/
46+
5347
5448
- name: Upload .zip of .app
5549
uses: actions/upload-release-asset@v1
5650
env:
5751
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5852
with:
5953
upload_url: ${{ github.event.release.upload_url }}
60-
asset_path: ./build/HDF5QL-${{ matrix.architecture }}.zip
61-
asset_name: HDF5QL-${{ matrix.architecture }}.zip
54+
asset_path: ./build/HDF5QL-${{ matrix.target }}.app.zip
55+
asset_name: HDF5QL-${{ matrix.target }}.app.zip
6256
asset_content_type: application/zip
6357

6458
- name: Upload .zip of .appex
@@ -67,6 +61,6 @@ jobs:
6761
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6862
with:
6963
upload_url: ${{ github.event.release.upload_url }}
70-
asset_path: ./build/HDF5QLExtension-${{ matrix.architecture }}.zip
71-
asset_name: HDF5QLExtension-${{ matrix.architecture }}.zip
64+
asset_path: ./build/HDF5QLExtension-${{ matrix.target }}.appex.zip
65+
asset_name: HDF5QLExtension-${{ matrix.target }}.appex.zip
7266
asset_content_type: application/zip

0 commit comments

Comments
 (0)