Skip to content

Commit cf7b11f

Browse files
committed
make sure to include the bundle
1 parent fa49ea1 commit cf7b11f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/archive.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)