chore: block releases for Capacitor 9 (#41)
This commit is contained in:
parent
fd80ee6f10
commit
20fe7c6b59
3 changed files with 11 additions and 1 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
|
||||
timeout-minutes: 30
|
||||
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: |
|
||||
if [[ "${{ inputs.release-version }}" =~ ^[67]\. ]]; then
|
||||
sudo xcode-select --switch /Applications/Xcode_16.2.app
|
||||
|
|
|
|||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,4 +3,4 @@ capacitor-checkout
|
|||
*.zip
|
||||
.swiftpm
|
||||
frameworks
|
||||
|
||||
.build
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# Swift Package Manager Support for Capacitor
|
||||
|
||||
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