Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 357466f

Browse files
committed
Update publish.yml with the new Swift release tool.
Hard code a test run (It worked! ✅)
1 parent d6ad2bd commit 357466f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
jobs:
1919
ios:
2020
name: Create Release PR on SwiftPM Repo
21-
runs-on: macos-12
21+
runs-on: macos-14
2222
steps:
2323
- name: 🧮 Checkout code
2424
uses: actions/checkout@v3
@@ -35,8 +35,8 @@ jobs:
3535
- name: Install targets
3636
run: make targets-ios
3737

38-
- name: Set XCode 14.2
39-
run: sudo xcode-select -switch /Applications/Xcode_14.2.app
38+
- name: Set Xcode 15.2
39+
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
4040

4141
- name: Set SwiftPM Repo credentials
4242
uses: de-vri-es/setup-git-credentials@v2
@@ -48,7 +48,10 @@ jobs:
4848
uses: dawidd6/action-get-tag@v1
4949

5050
- name: Release iOS
51-
run: ./release_ios.sh -t ${{ steps.tag.outputs.tag }}
51+
working-directory: platforms/ios/tools/release
52+
run: swift run release --version ${{ steps.tag.outputs.tag }}
53+
env:
54+
SWIFT_RELEASE_TOKEN: ${{ secrets.PAT }}
5255

5356
android:
5457
name: Publish to maven

platforms/ios/tools/release/Sources/Release.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct Release: AsyncParsableCommand {
1010

1111
var apiToken = ProcessInfo.processInfo.environment["SWIFT_RELEASE_TOKEN"]!
1212

13-
var packageRepo = "pixlwave/rich-text-editor-test"
13+
var packageRepo = "matrix-org/matrix-rich-text-editor-swift"
1414
var buildDirectory = URL(filePath: #file)
1515
.deletingLastPathComponent() // Release.swift
1616
.deletingLastPathComponent() // Sources

0 commit comments

Comments
 (0)