the issue with netlify building on master changes is that semantic-release creates a second commit with the updated changelog. Netlify only triggers on the first commit, with an obsolete changelog. The second commit doesn't trigger Netlify, so we must manually trigger it using their webhook. This way the changelog built is *after* semantic-release, with the latest releases
25 lines
633 B
Bash
Executable File
25 lines
633 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -exu
|
|
|
|
env | sort
|
|
npm ci
|
|
brew install jq
|
|
|
|
npx commitlint-travis
|
|
scripts/ensure_generated_files_are_up_to_date.sh
|
|
|
|
if [ $IS_RELEASE ]; then
|
|
scripts/determine_version.sh
|
|
scripts/replace_environment_variables_in_app.sh
|
|
scripts/codesign/setup_ci_master.sh
|
|
xcodebuild -workspace alt-tab-macos.xcworkspace -scheme Release -derivedDataPath DerivedData
|
|
scripts/package_and_notarize_release.sh
|
|
scripts/update_appcast.sh
|
|
npx semantic-release
|
|
scripts/update_website.sh
|
|
else
|
|
scripts/codesign/setup_ci_pr.sh
|
|
xcodebuild -workspace alt-tab-macos.xcworkspace -scheme Debug -derivedDataPath DerivedData
|
|
fi
|