Skip to content

Commit

Permalink
Fix path to dir containing zip
Browse files Browse the repository at this point in the history
  • Loading branch information
sampettersson committed Dec 8, 2022
1 parent 9e118f4 commit f406269
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ios-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@ jobs:
arguments: :assembleAuthlibReleaseXCFramework
- name: Prepare ZIP
run: |
set -x
set -x
RELEASE_DIR="${{ github.workspace }}/build/XCFrameworks/release/"
zip -r ${{ github.workspace }}/build/XCFrameworks/release/authlib.xcframework.zip ${{ github.workspace }}/build/XCFrameworks/release/authlib.xcframework/*
function replaceChecksum {
CHECKSUM=$(swift package compute-checksum "$IOS_FOLDER"/build/"$1".xcframework.zip)
CHECKSUM=$(swift package compute-checksum "$RELEASE_DIR$1".xcframework.zip)
sed -i '' "s/checksum: \"[a-z0-9]*\"\/\/ $1 Checksum/checksum: \"$CHECKSUM\"\/\/ $1 Checksum/g" Package.swift
}
function replaceURL {
BASE_URL="https:\/\/github.com\/HedvigInsurance\/OdysseyKit\/raw\/$1"
BASE_URL="https:\/\/github.com\/HedvigInsurance\/authlib\/raw\/$1"
sed -i '' "s/url: \".*\",\/\/ $2 URL/url: \"$BASE_URL\/$2.xcframework.zip\",\/\/ $2 URL/g" Package.swift
}
Expand Down

0 comments on commit f406269

Please sign in to comment.