File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -13,27 +13,25 @@ jobs:
1313 - name : Checkout
1414 uses : actions/checkout@v3
1515
16- - name : Build macOS binary
17- id : build
18- run : |
19- swift build -c release --arch x86_64 --arch arm64
20- mv $(swift build -c release --arch x86_64 --arch arm64 --show-bin-path) artifact
21- echo "path=artifact/xcstringslint" >> "$GITHUB_OUTPUT"
22-
2316 - name : Build artifact bundle
2417 env :
2518 ARTIFACT_FOLDER_NAME : " XCStringsLint.artifactbundle"
2619 VERSION : ${{ github.ref_name }}
2720 run : |
21+ swift build -c release --arch x86_64 --arch arm64
22+ BINARY_PATH=$(swift build -c release --arch x86_64 --arch arm64 --show-bin-path)
23+
2824 mkdir -p "$ARTIFACT_FOLDER_NAME/xcstringslint-$VERSION-macos/bin"
29- cp -f "${{ steps.build.outputs.path }}" "$ARTIFACT_FOLDER_NAME/xcstringslint-$VERSION-macos/bin"
25+
26+ cp -f "$BINARY_PATH/xcstringslint" "$ARTIFACT_FOLDER_NAME/xcstringslint-$VERSION-macos/bin"
27+ cp -r -- $BINARY_PATH/*.bundle "$ARTIFACT_FOLDER_NAME/xcstringslint-$VERSION-macos/bin"
3028
3129 sed "s/__VERSION__/$VERSION/g" .github/artifactbundle.json.template > "$ARTIFACT_FOLDER_NAME/info.json"
3230 cp -f "LICENSE" "$ARTIFACT_FOLDER_NAME"
3331
34- (zip -yr - "$ARTIFACT_FOLDER_NAME") > "./XCStringsLint-macos.artifactbundle .zip"
32+ (zip -yr - "$ARTIFACT_FOLDER_NAME") > "./$ARTIFACT_FOLDER_NAME .zip"
3533
3634 - name : Upload binary to release
3735 uses : softprops/action-gh-release@v2
3836 with :
39- files : XCStringsLint-macos .artifactbundle.zip
37+ files : XCStringsLint.artifactbundle.zip
You can’t perform that action at this time.
0 commit comments