Skip to content

Commit 61880d9

Browse files
committed
update release.yml
1 parent 70d62b4 commit 61880d9

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
name: macro-plugin-x86_64
6666
path: ./artifacts
6767

68-
- name: Create Universal Macro Plugin and Artifact Bundle
68+
- name: Create Universal Macro Plugin
6969
run: |
7070
cd artifacts
7171
@@ -77,38 +77,13 @@ jobs:
7777
lipo -info ReerCodableMacros
7878
file ReerCodableMacros
7979
80-
# Create artifact bundle structure
81-
mkdir -p ReerCodableMacros.artifactbundle/macos/bin
82-
cp ReerCodableMacros ReerCodableMacros.artifactbundle/macos/bin/
83-
84-
# Create info.json
85-
cat > ReerCodableMacros.artifactbundle/info.json << EOF
86-
{
87-
"schemaVersion": "1.0",
88-
"artifacts": {
89-
"ReerCodableMacros": {
90-
"version": "${{ github.ref_name }}",
91-
"type": "executable",
92-
"variants": [
93-
{
94-
"path": "macos/bin/ReerCodableMacros",
95-
"supportedTriples": ["x86_64-apple-macosx", "arm64-apple-macosx"]
96-
}
97-
]
98-
}
99-
}
100-
}
101-
EOF
102-
10380
# Create zip archive
104-
zip -r ReerCodableMacros.artifactbundle.zip ReerCodableMacros.artifactbundle
81+
zip ReerCodableMacros.zip ReerCodableMacros
10582
106-
echo "=== Artifact Bundle Contents ==="
107-
unzip -l ReerCodableMacros.artifactbundle.zip
83+
echo "=== Zip Contents ==="
84+
unzip -l ReerCodableMacros.zip
10885
10986
- name: Upload to GitHub Release
11087
uses: softprops/action-gh-release@v2
11188
with:
112-
files: |
113-
artifacts/ReerCodableMacros
114-
artifacts/ReerCodableMacros.artifactbundle.zip
89+
files: artifacts/ReerCodableMacros.zip

ReerCodable.podspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ Pod::Spec.new do |s|
4747
PLUGIN_DIR="MacroPlugin"
4848
PLUGIN_NAME="ReerCodableMacros"
4949
VERSION="#{s.version}"
50-
DOWNLOAD_URL="https://github.com/reers/ReerCodable/releases/download/${VERSION}/${PLUGIN_NAME}"
50+
DOWNLOAD_URL="https://github.com/reers/ReerCodable/releases/download/${VERSION}/${PLUGIN_NAME}.zip"
5151
5252
mkdir -p "${PLUGIN_DIR}"
5353
5454
echo "Downloading prebuilt macro plugin from ${DOWNLOAD_URL}..."
5555
56-
if curl -L -f -o "${PLUGIN_DIR}/${PLUGIN_NAME}" "${DOWNLOAD_URL}"; then
56+
if curl -L -f -o "${PLUGIN_DIR}/${PLUGIN_NAME}.zip" "${DOWNLOAD_URL}"; then
57+
unzip -o "${PLUGIN_DIR}/${PLUGIN_NAME}.zip" -d "${PLUGIN_DIR}"
58+
rm -f "${PLUGIN_DIR}/${PLUGIN_NAME}.zip"
5759
chmod +x "${PLUGIN_DIR}/${PLUGIN_NAME}"
5860
echo "Successfully downloaded prebuilt macro plugin"
5961
file "${PLUGIN_DIR}/${PLUGIN_NAME}"

0 commit comments

Comments
 (0)