Fixed add to calendar desktop (#37) #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Desktop MacOS Release Testflight | |
on: | |
push: | |
tags: | |
- 'release/[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
deploy: | |
runs-on: macos-14 | |
timeout-minutes: 40 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/setup-gradle | |
# Export all as .p12 | |
- name: Import Mac App Distribution and Installer certificate | |
uses: apple-actions/import-codesign-certs@v3 | |
with: | |
p12-file-base64: ${{ secrets.MAC_APP_DISTRIBUTION_INSTALLER_CERTIFICATE }} | |
p12-password: ${{ secrets.CERTIFICATES_PASSWORD }} | |
- name: Create Embedded Provision Profile | |
run: | | |
echo "$EMBEDDED_PROVISION" > desktopApp/embedded.provisionprofile.b64 | |
base64 -d -i desktopApp/embedded.provisionprofile.b64 > desktopApp/embedded.provisionprofile | |
env: | |
EMBEDDED_PROVISION: ${{ secrets.EMBEDDED_PROVISION }} | |
- name: Create Runtime Provision Profile | |
run: | | |
echo "$RUNTIME_PROVISION" > desktopApp/runtime.provisionprofile.b64 | |
base64 -d -i desktopApp/runtime.provisionprofile.b64 > desktopApp/runtime.provisionprofile | |
env: | |
RUNTIME_PROVISION: ${{ secrets.RUNTIME_PROVISION }} | |
- name: Create path variables | |
id: path_variables | |
run: | | |
tag=$(git describe --tags --abbrev=0 --match "release/*") | |
version=$(echo "$tag" | sed 's/release\///') | |
name="Sync Sphere-${version}.pkg" | |
path="desktopApp/build/release/main/pkg/${name}" | |
echo "TAG=$tag" >> $GITHUB_ENV | |
echo "VERSION=$version" >> $GITHUB_ENV | |
echo "RELEASE_PATH=$path" >> $GITHUB_ENV | |
- name: Create Properties file | |
run: | | |
echo "is_release=true" >> desktopApp/src/jvmMain/resources/props.properties | |
echo "sentry_dns=$SENTRY_DNS" >> desktopApp/src/jvmMain/resources/props.properties | |
echo "version=$VERSION" >> desktopApp/src/jvmMain/resources/props.properties | |
env: | |
SENTRY_DNS: ${{ secrets.SENTRY_DNS }} | |
VERSION: ${{ env.VERSION }} | |
- name: Create PKG | |
run: ./gradlew :desktopApp:packagePkg -PmacOsAppStoreRelease=true | |
- name: Upload reports | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports | |
path: | | |
**/build/compose/logs/* | |
- uses: Apple-Actions/upload-testflight-build@v1 | |
with: | |
app-type: 'osx' | |
app-path: ${{ env.RELEASE_PATH }} | |
issuer-id: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} | |
api-key-id: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID_SYNC_SPHERE }} | |
api-private-key: ${{ secrets.SYNC_SPHERE_APP_STORE_CONNECT_PRIVATE_KEY }} |