| 1 | name: Release |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | tags: |
| 6 | - "[0-9]+.[0-9]+.[0-9]+" |
| 7 | |
| 8 | permissions: |
| 9 | contents: write |
| 10 | |
| 11 | jobs: |
| 12 | validate: |
| 13 | name: Validate package |
| 14 | runs-on: macos-26 |
| 15 | steps: |
| 16 | - uses: actions/checkout@v6 |
| 17 | |
| 18 | - name: Resolve dependencies |
| 19 | run: swift package resolve |
| 20 | |
| 21 | - name: Build for macOS |
| 22 | run: swift build |
| 23 | |
| 24 | - name: Build for iOS |
| 25 | run: > |
| 26 | xcodebuild build |
| 27 | -scheme Onde |
| 28 | -destination 'generic/platform=iOS' |
| 29 | -skipPackagePluginValidation |
| 30 | -skipMacroValidation |
| 31 | |
| 32 | release: |
| 33 | name: Create GitHub Release |
| 34 | needs: validate |
| 35 | runs-on: ubuntu-latest |
| 36 | steps: |
| 37 | - uses: actions/checkout@v6 |
| 38 | |
| 39 | - name: Create GitHub Release |
| 40 | uses: softprops/action-gh-release@v2 |
| 41 | with: |
| 42 | name: ${{ github.ref_name }} |
| 43 | body: | |
| 44 | ## Onde Swift SDK ${{ github.ref_name }} |
| 45 | |
| 46 | ### Installation |
| 47 | |
| 48 | Add Onde to your `Package.swift` dependencies: |
| 49 | |
| 50 | ```swift |
| 51 | .package(url: "https://github.com/ondeinference/onde-swift.git", from: "${{ github.ref_name }}") |
| 52 | ``` |
| 53 | |
| 54 | ### Platforms |
| 55 | |
| 56 | | Platform | Minimum Version | |
| 57 | |----------|----------------| |
| 58 | | iOS | 15.0 | |
| 59 | | macOS | 11.0 | |
| 60 | | tvOS | 15.0 | |
| 61 | | visionOS | 26.0 | |
| 62 | | watchOS | 10.0 | |
| 63 | |
| 64 | ### What's Changed |
| 65 | |
| 66 | See the full changelog in the [Onde ${{ github.ref_name }}](https://github.com/ondeinference/onde/releases/tag/${{ github.ref_name }}) release. |