chore: block releases for Capacitor 9
This commit is contained in:
parent
f859e2f411
commit
cc6add8c48
2 changed files with 10 additions and 0 deletions
8
.github/workflows/build-and-release.yaml
vendored
8
.github/workflows/build-and-release.yaml
vendored
|
|
@ -18,6 +18,14 @@ jobs:
|
||||||
runs-on: macos-15
|
runs-on: macos-15
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
- name: Validate release version
|
||||||
|
run: |
|
||||||
|
version="${{ inputs.release-version }}"
|
||||||
|
major="${version%%.*}"
|
||||||
|
if [[ ! "$major" =~ ^[0-9]+$ ]] || (( major < 6 || major > 8 )); then
|
||||||
|
echo "::error::Capacitor $version is not supported by this repository. Starting with Capacitor 9 (see https://github.com/ionic-team/capacitor/pull/8588 PR), the iOS platform is a source-first Swift package built directly from the ionic-team/capacitor repository, so SPM distribution no longer happens here. This repository only releases major versions 6, 7, and 8."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- run: |
|
- run: |
|
||||||
if [[ "${{ inputs.release-version }}" =~ ^[67]\. ]]; then
|
if [[ "${{ inputs.release-version }}" =~ ^[67]\. ]]; then
|
||||||
sudo xcode-select --switch /Applications/Xcode_16.2.app
|
sudo xcode-select --switch /Applications/Xcode_16.2.app
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
# Swift Package Manager Support for Capacitor
|
# Swift Package Manager Support for Capacitor
|
||||||
|
|
||||||
This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for SPM support.
|
This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for SPM support.
|
||||||
|
|
||||||
|
Only applies to Capacitor major versions 6, 7, and 8. Starting with Capacitor 9, the iOS platform is a source-first Swift package built directly from the [ionic-team/capacitor](https://github.com/ionic-team/capacitor) repository.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue