Skip to content

Commit

Permalink
Maybe fix release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Apr 26, 2024
1 parent d0ecffc commit e7ba747
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Release

on:
workflow_dispatch:
Expand Down Expand Up @@ -78,11 +78,11 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: liveview_native_core.xcframework
path: ./target/uniffi/swift/liveview_native_core.xcframework.zip
path: liveview_native_core.xcframework.zip

- name: Update version and checksum of xcframework in Package.swift
run: |
checksum=$(swift package compute-checksum ./target/uniffi/swift/liveview_native_core.xcframework.zip)
checksum=$(swift package compute-checksum liveview_native_core.xcframework.zip)
version=${{ github.event.release.tag_name }}
sed -i "" -E "s/(let releaseTag = \")[^\"]+(\")/\1$version\2/g" Package.swift
sed -i "" -E "s/(let releaseChecksum = \")[^\"]+(\")/\1$checksum\2/g" Package.swift
Expand Down

0 comments on commit e7ba747

Please sign in to comment.