Skip to content

Commit e6da488

Browse files
authored
Merge pull request #1143 from tunjid/tj/disable-mac-publish
Disable mac publishing for now
2 parents 833b2aa + 37ad5ff commit e6da488

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

.github/workflows/publish.yml

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -93,64 +93,64 @@ jobs:
9393
draft: true
9494
allow_updates: true
9595

96-
publish-mac-app:
97-
runs-on: macos-latest
98-
permissions:
99-
contents: 'write'
100-
steps:
101-
- name: Checkout Code
102-
uses: actions/checkout@v5
103-
104-
- name: Setup java
105-
uses: actions/setup-java@v5
106-
with:
107-
distribution: 'zulu'
108-
java-version: 21
109-
110-
- name: Setup Gradle
111-
uses: gradle/actions/setup-gradle@v4
112-
113-
- name: Cache KMP tooling
114-
uses: actions/cache@v4
115-
with:
116-
path: |
117-
~/.konan
118-
key: ${{ runner.os }}-v1-${{ hashFiles('gradle/libs.versions.toml') }}
119-
120-
- name: Import signing certificate
121-
uses: apple-actions/import-codesign-certs@v2
122-
with:
123-
p12-file-base64: ${{ secrets.SIGNING_CERTIFICATE_P12_DATA_MACOS }}
124-
p12-password: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD_MACOS }}
125-
126-
- name: Build release DMG
127-
env:
128-
HERON_ENDPOINT: ${{ secrets.HERON_ENDPOINT }}
129-
run: |
130-
./gradlew packageReleaseDmg \
131-
-Pheron.versionCode=${{ github.run_number }} \
132-
-Pheron.endpoint="$HERON_ENDPOINT"
133-
134-
- name: Notarize DMG
135-
env:
136-
APPLE_ID_NOTARIZATION: ${{ secrets.APPLE_ID_NOTARIZATION }}
137-
APPSTORE_TEAM_ID: ${{ secrets.APPSTORE_TEAM_ID }}
138-
NOTARIZATION_PWD: ${{ secrets.NOTARIZATION_PWD }}
139-
run: |
140-
DMG_PATH=$(find composeApp/build/release/main-release/dmg -name "*.dmg" | head -1)
141-
xcrun notarytool submit "$DMG_PATH" \
142-
--apple-id "$APPLE_ID_NOTARIZATION" \
143-
--password "$NOTARIZATION_PWD" \
144-
--team-id "$APPSTORE_TEAM_ID" \
145-
--wait
146-
xcrun stapler staple "$DMG_PATH"
147-
echo "DMG_PATH=$DMG_PATH" >> $GITHUB_ENV
148-
149-
- name: Upload to GitHub releases
150-
uses: softprops/action-gh-release@v2
151-
with:
152-
tag_name: v${{ github.run_number }}
153-
name: Heron v${{ github.run_number }}
154-
files: ${{ env.DMG_PATH }}
155-
draft: true
156-
allow_updates: true
96+
# publish-mac-app:
97+
# runs-on: macos-latest
98+
# permissions:
99+
# contents: 'write'
100+
# steps:
101+
# - name: Checkout Code
102+
# uses: actions/checkout@v5
103+
#
104+
# - name: Setup java
105+
# uses: actions/setup-java@v5
106+
# with:
107+
# distribution: 'zulu'
108+
# java-version: 21
109+
#
110+
# - name: Setup Gradle
111+
# uses: gradle/actions/setup-gradle@v4
112+
#
113+
# - name: Cache KMP tooling
114+
# uses: actions/cache@v4
115+
# with:
116+
# path: |
117+
# ~/.konan
118+
# key: ${{ runner.os }}-v1-${{ hashFiles('gradle/libs.versions.toml') }}
119+
#
120+
# - name: Import signing certificate
121+
# uses: apple-actions/import-codesign-certs@v2
122+
# with:
123+
# p12-file-base64: ${{ secrets.SIGNING_CERTIFICATE_P12_DATA_MACOS }}
124+
# p12-password: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD_MACOS }}
125+
#
126+
# - name: Build release DMG
127+
# env:
128+
# HERON_ENDPOINT: ${{ secrets.HERON_ENDPOINT }}
129+
# run: |
130+
# ./gradlew packageReleaseDmg \
131+
# -Pheron.versionCode=${{ github.run_number }} \
132+
# -Pheron.endpoint="$HERON_ENDPOINT"
133+
#
134+
# - name: Notarize DMG
135+
# env:
136+
# APPLE_ID_NOTARIZATION: ${{ secrets.APPLE_ID_NOTARIZATION }}
137+
# APPSTORE_TEAM_ID: ${{ secrets.APPSTORE_TEAM_ID }}
138+
# NOTARIZATION_PWD: ${{ secrets.NOTARIZATION_PWD }}
139+
# run: |
140+
# DMG_PATH=$(find composeApp/build/release/main-release/dmg -name "*.dmg" | head -1)
141+
# xcrun notarytool submit "$DMG_PATH" \
142+
# --apple-id "$APPLE_ID_NOTARIZATION" \
143+
# --password "$NOTARIZATION_PWD" \
144+
# --team-id "$APPSTORE_TEAM_ID" \
145+
# --wait
146+
# xcrun stapler staple "$DMG_PATH"
147+
# echo "DMG_PATH=$DMG_PATH" >> $GITHUB_ENV
148+
#
149+
# - name: Upload to GitHub releases
150+
# uses: softprops/action-gh-release@v2
151+
# with:
152+
# tag_name: v${{ github.run_number }}
153+
# name: Heron v${{ github.run_number }}
154+
# files: ${{ env.DMG_PATH }}
155+
# draft: true
156+
# allow_updates: true

0 commit comments

Comments
 (0)