Skip to content

Commit

Permalink
feat: archive dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
suphon-t committed Jan 10, 2024
1 parent 3dbd5c9 commit 88f2faa
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ jobs:
BUILD_SETTINGS=$(xcodebuild -scheme "$SCHEME" -showBuildSettings -json | jq -r '.[0].buildSettings')
FULL_PRODUCT_NAME=$(echo $BUILD_SETTINGS | jq -r '.FULL_PRODUCT_NAME')
MARKETING_VERSION=$(echo $BUILD_SETTINGS | jq -r '.MARKETING_VERSION')
echo "SCHEME=$SCHEME" >> "$GITHUB_ENV"
echo "FULL_PRODUCT_NAME=$FULL_PRODUCT_NAME" >> "$GITHUB_ENV"
echo "MARKETING_VERSION=$MARKETING_VERSION" >> "$GITHUB_ENV"
- name: Install the Apple certificate
env:
Expand Down Expand Up @@ -60,5 +62,13 @@ jobs:
- name: Package
run: |
npm install -g create-dmg
create-dmg "Build/Applications/$FULL_PRODUCT_NAME" Build
ls Build
mkdir -p Build/dmg
create-dmg "Build/Applications/$FULL_PRODUCT_NAME" Build/dmg
mv Build/dmg/*.dmg Build/$FULL_PRODUCT_NAME.dmg
rm -r Build/dmg
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ env.FULL_PRODUCT_NAME }}.dmg
path: Build/$FULL_PRODUCT_NAME.dmg

0 comments on commit 88f2faa

Please sign in to comment.