1414 outputs :
1515 tag : ${{ steps.tag.outputs.tag }}
1616 steps :
17- - uses : actions/checkout@v5
17+ - uses : actions/checkout@v6
1818 with :
1919 fetch-depth : 0
2020
@@ -37,22 +37,22 @@ jobs:
3737 needs :
3838 - fetch_prebuilts
3939 steps :
40- - uses : actions/checkout@v5
40+ - uses : actions/checkout@v6
4141 - name : Validate Gradle Wrapper
4242 uses : gradle/wrapper-validation-action@v1
43- - uses : actions/cache@v3
43+ - uses : actions/cache@v5
4444 with :
4545 path : ~/.konan
4646 key : ${{ runner.os }}-${{ hashFiles('**/.lock') }}
4747 - name : Set up JDK 25
48- uses : actions/setup-java@v3
48+ uses : actions/setup-java@v5
4949 with :
5050 java-version : ' 25'
5151 distribution : ' temurin'
5252 - name : Set up Gradle
53- uses : gradle/actions/setup-gradle@v4
53+ uses : gradle/actions/setup-gradle@v6
5454 - name : Download prebuilts
55- uses : actions/download-artifact@v5
55+ uses : actions/download-artifact@v8
5656 with :
5757 artifact-ids : ${{ needs.fetch_prebuilts.outputs.artifact_id }}
5858 path : internal/prebuild-binaries/build/output/
@@ -81,59 +81,18 @@ jobs:
8181 publishAllPublicationsToSonatypeRepository
8282 shell : bash
8383
84- build_xcframeworks :
85- name : Build XCFrameworks
86- needs :
87- - fetch_prebuilts
88- runs-on : macos-latest
89- steps :
90- - uses : actions/checkout@v4
91- - name : Validate Gradle Wrapper
92- uses : gradle/wrapper-validation-action@v1
93- - uses : actions/cache@v3
94- with :
95- path : ~/.konan
96- key : ${{ runner.os }}-${{ hashFiles('**/.lock') }}
97- - name : Set up JDK 25
98- uses : actions/setup-java@v3
99- with :
100- java-version : ' 25'
101- distribution : ' temurin'
102- - name : Set up Gradle
103- uses : gradle/actions/setup-gradle@v4
104- with :
105- cache-encryption-key : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
106- - name : Download prebuilts
107- uses : actions/download-artifact@v5
108- with :
109- artifact-ids : ${{ needs.fetch_prebuilts.outputs.artifact_id }}
110- path : internal/prebuild-binaries/build/output/
111- - name : Build frameworks
112- run : " ./gradlew -PhasPrebuiltAssets=true internal:PowerSyncKotlin:buildRelease"
113-
114- - uses : actions/upload-artifact@v4
115- with :
116- name : XCFramework
117- retention-days : 1 # Only used temporarily
118- compression-level : 0 # We're already uploading a compressed file
119- path : internal/PowerSyncKotlin/build/FrameworkArchives/PowersyncKotlinRelease.zip
120- if-no-files-found : error
121-
12284 add_assets :
12385 permissions :
12486 contents : write
125- needs : [draft_release, build_xcframeworks, fetch_prebuilts]
87+ needs : [draft_release, fetch_prebuilts]
12688 name : Add assets to pending release
12789 runs-on : ubuntu-latest
12890 steps :
129- - uses : actions/checkout@v4
91+ - uses : actions/checkout@v6
13092 with :
13193 fetch-depth : 0
132- - uses : actions/download-artifact@v4
133- with :
134- name : XCFramework
13594 - name : Download prebuilts
136- uses : actions/download-artifact@v5
95+ uses : actions/download-artifact@v8
13796 with :
13897 artifact-ids : ${{ needs.fetch_prebuilts.outputs.artifact_id }}
13998 path : internal/prebuild-binaries/build/output/
@@ -143,26 +102,9 @@ jobs:
143102 find internal/prebuild-binaries/build/output
144103 zip -r prebuilt_libraries.zip internal/prebuild-binaries/build/output/
145104
146- - name : Upload XCFramework
105+ - name : Upload prebuilt libraries
147106 env :
148107 GH_TOKEN : ${{ github.token }}
149108 GH_REPO : ${{ github.repository }}
150109 run : |
151- gh release upload "${{ needs.draft_release.outputs.tag }}" PowersyncKotlinRelease.zip
152110 gh release upload "${{ needs.draft_release.outputs.tag }}" prebuilt_libraries.zip
153-
154- - name : " Update release description"
155- env :
156- GH_TOKEN : ${{ github.token }}
157- GH_REPO : ${{ github.repository }}
158- shell : bash
159- run : |
160- checksums=$(sha256sum PowersyncKotlinRelease.zip)
161- cat > RELEASE_NOTES <<- NOTES_END
162- File hashes:
163- \`\`\`
164- $checksums
165- \`\`\`
166- NOTES_END
167-
168- gh release edit "${{ needs.draft_release.outputs.tag }}" -F RELEASE_NOTES
0 commit comments