Skip to content

Commit

Permalink
generate dmg in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
iaalm committed Mar 28, 2023
1 parent ed4f1f6 commit 3ba9f0b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,26 @@ jobs:

- name: Build
run: |
xcodebuild -target yCHM -scheme yCHM build
xcodebuild -target yCHM -scheme yCHM archive -archivePath build
xcodebuild -exportArchive -archivePath build.xcarchive -exportPath ./archive/ -exportOptionsPlist export-options.plist
xcodebuild -target yCHM -scheme yCHM -configuration Release build SYMROOT=$(pwd)/build
rm -rf build/Release/yCHM/
mkdir build/Release/yCHM
cp -r build/Release/yCHM.app build/Release/yCHM/
ln -s /Applications build/Release/yCHM/Applications
hdiutil create build/Release/yCHM.dmg -ov -volname "yCHM" -fs HFS+ -srcfolder build/Release/yCHM/
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: yCHM
path: |
archive/
build/Release/yCHM.dmg
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
archive/
build/Release/yCHM.dmg

0 comments on commit 3ba9f0b

Please sign in to comment.