Compare commits
1 Commits
main
...
chore/merg
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64a1769380 |
12
.github/workflows/build-and-release.yml
vendored
12
.github/workflows/build-and-release.yml
vendored
@ -35,6 +35,10 @@ on:
|
|||||||
description: "Build & upload TestFlight (macOS/iOS App Store) artifacts"
|
description: "Build & upload TestFlight (macOS/iOS App Store) artifacts"
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
enable_github_release:
|
||||||
|
description: "Upload assets to GitHub Release"
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -54,6 +58,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
outputs:
|
outputs:
|
||||||
should_release: ${{ steps.flags.outputs.should_release }}
|
should_release: ${{ steps.flags.outputs.should_release }}
|
||||||
|
github_release_enabled: ${{ steps.flags.outputs.github_release_enabled }}
|
||||||
testflight_enabled: ${{ steps.flags.outputs.testflight_enabled }}
|
testflight_enabled: ${{ steps.flags.outputs.testflight_enabled }}
|
||||||
release_tag: ${{ steps.meta.outputs.release_tag }}
|
release_tag: ${{ steps.meta.outputs.release_tag }}
|
||||||
release_title: ${{ steps.meta.outputs.release_title }}
|
release_title: ${{ steps.meta.outputs.release_title }}
|
||||||
@ -68,6 +73,7 @@ jobs:
|
|||||||
id: flags
|
id: flags
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
ENABLE_GITHUB_RELEASE_INPUT: ${{ github.event.inputs.enable_github_release }}
|
||||||
ENABLE_TESTFLIGHT_INPUT: ${{ github.event.inputs.enable_testflight }}
|
ENABLE_TESTFLIGHT_INPUT: ${{ github.event.inputs.enable_testflight }}
|
||||||
ENABLE_TESTFLIGHT_VAR: ${{ vars.ENABLE_TESTFLIGHT }}
|
ENABLE_TESTFLIGHT_VAR: ${{ vars.ENABLE_TESTFLIGHT }}
|
||||||
run: |
|
run: |
|
||||||
@ -77,6 +83,12 @@ jobs:
|
|||||||
echo "should_release=false" >> "$GITHUB_OUTPUT"
|
echo "should_release=false" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${GITHUB_EVENT_NAME:-}" == "workflow_dispatch" && "${ENABLE_GITHUB_RELEASE_INPUT:-}" == "false" ]]; then
|
||||||
|
echo "github_release_enabled=false" >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo "github_release_enabled=true" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
# TestFlight is opt-in (default OFF). Enabled only when explicitly
|
# TestFlight is opt-in (default OFF). Enabled only when explicitly
|
||||||
# requested via the workflow_dispatch input or the ENABLE_TESTFLIGHT
|
# requested via the workflow_dispatch input or the ENABLE_TESTFLIGHT
|
||||||
# repo/org variable. Keeps missing Apple signing secrets from failing
|
# repo/org variable. Keeps missing Apple signing secrets from failing
|
||||||
|
|||||||
@ -4,7 +4,7 @@ publish_to: 'none'
|
|||||||
|
|
||||||
version: 1.1.5+2
|
version: 1.1.5+2
|
||||||
build-date: 2026-06-30
|
build-date: 2026-06-30
|
||||||
build-id: a876e3b
|
build-id: a876e3b0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.11.0
|
sdk: ^3.11.0
|
||||||
|
|||||||
@ -40,7 +40,10 @@ app_build_commit="${GIT_BUILD_COMMIT:-${BUILD_ID_LINE:-unknown}}"
|
|||||||
|
|
||||||
tmp_dir="$(mktemp -d "${RUNNER_TEMP:-/tmp}/xworkmate-macos-app-store.XXXXXX")"
|
tmp_dir="$(mktemp -d "${RUNNER_TEMP:-/tmp}/xworkmate-macos-app-store.XXXXXX")"
|
||||||
cleanup() {
|
cleanup() {
|
||||||
|
local status=$?
|
||||||
rm -rf "$tmp_dir"
|
rm -rf "$tmp_dir"
|
||||||
|
apple_run_cleanup
|
||||||
|
return "$status"
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
@ -80,12 +83,15 @@ xcodebuild archive \
|
|||||||
-scheme Runner \
|
-scheme Runner \
|
||||||
-configuration Release \
|
-configuration Release \
|
||||||
-archivePath "$archive_path" \
|
-archivePath "$archive_path" \
|
||||||
|
-allowProvisioningUpdates \
|
||||||
|
-allowProvisioningDeviceRegistration \
|
||||||
DEVELOPMENT_TEAM="N3G9T67W78"
|
DEVELOPMENT_TEAM="N3G9T67W78"
|
||||||
|
|
||||||
xcodebuild -exportArchive \
|
xcodebuild -exportArchive \
|
||||||
-archivePath "$archive_path" \
|
-archivePath "$archive_path" \
|
||||||
-exportPath "$DIST_DIR" \
|
-exportPath "$DIST_DIR" \
|
||||||
-exportOptionsPlist "$export_options_path"
|
-exportOptionsPlist "$export_options_path" \
|
||||||
|
-allowProvisioningUpdates
|
||||||
|
|
||||||
if ! compgen -G "$DIST_DIR/*.pkg" >/dev/null; then
|
if ! compgen -G "$DIST_DIR/*.pkg" >/dev/null; then
|
||||||
echo "No macOS TestFlight pkg was produced under $DIST_DIR" >&2
|
echo "No macOS TestFlight pkg was produced under $DIST_DIR" >&2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user