Skip to content

Commit d9a3b38

Browse files
authored
Merge pull request #1 from ManasWolrd/ci
Ci
2 parents f11d021 + f4de75f commit d9a3b38

3 files changed

Lines changed: 39 additions & 36 deletions

File tree

.github/workflows/build_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: macOS/Windows/Linux Test
44
on:
55
push:
66
branches: [ main ]
7+
paths-ignore:
8+
- 'README.md'
9+
- 'docs/**'
710
pull_request:
811
branches: [ main ]
912
workflow_dispatch:

.github/workflows/release.yaml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -164,28 +164,34 @@ jobs:
164164
- name: Append tag to artifacts
165165
run: |
166166
TAG_NAME=${GITHUB_REF#refs/tags/}
167-
168-
for PLATFORM in win macos linux; do
169-
if [ -d "plugin-${PLATFORM}" ]; then
170-
RELEASE_PATH=$(find "plugin-${PLATFORM}" -type d -name "Release" | head -n 1)
167+
REPO_NAME="${{ github.event.repository.name }}"
171168
172-
if [ -n "$RELEASE_PATH" ]; then
173-
echo "Packing ${PLATFORM} from ${RELEASE_PATH}..."
174-
(cd "$RELEASE_PATH" && zip -r "../plugin-${PLATFORM}-${TAG_NAME}.zip" .)
175-
else
176-
echo "Warning: Release folder not found for ${PLATFORM}"
177-
fi
178-
fi
179-
done
169+
MAC_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-macos -type d -name "Release" | head -n 1)
170+
WIN_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-win -type d -name "Release" | head -n 1)
171+
LINUX_RELEASE_DIR=$(find $GITHUB_WORKSPACE/artifacts/plugin-linux -type d -name "Release" | head -n 1)
172+
173+
DEST_DIR="$GITHUB_WORKSPACE/artifacts"
174+
175+
cd "$WIN_RELEASE_DIR"
176+
zip -r "${REPO_NAME}-win-${TAG_NAME}.zip" .
177+
cp "${REPO_NAME}-win-${TAG_NAME}.zip" "$DEST_DIR/"
178+
179+
cd "$MAC_RELEASE_DIR"
180+
zip -r "${REPO_NAME}-macos-${TAG_NAME}.zip" .
181+
cp "${REPO_NAME}-macos-${TAG_NAME}.zip" "$DEST_DIR/"
182+
183+
cd "$LINUX_RELEASE_DIR"
184+
zip -r "${REPO_NAME}-linux-${TAG_NAME}.zip" .
185+
cp "${REPO_NAME}-linux-${TAG_NAME}.zip" "$DEST_DIR/"
180186
181187
- name: Create GitHub Release
182188
uses: softprops/action-gh-release@v2
183189
with:
184190
draft: true
185191
tag_name: ${{ github.ref_name }}
186192
files: |
187-
artifacts/plugin-win-*.zip
188-
artifacts/plugin-macos-*.zip
189-
artifacts/plugin-linux-*.zip
193+
artifacts/*-win-*.zip
194+
artifacts/*-macos-*.zip
195+
artifacts/*-linux-*.zip
190196
env:
191197
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,21 @@ What you actually need to copy is the plugin bundle itself, not the `Release` or
1414
After extraction, the folder structure will look roughly like this:
1515

1616
```text
17-
plugin-win-vX.Y.Z.zip
18-
plugin-win/
19-
PluginName_artefacts/Release/
20-
VST3/
21-
PluginName.vst3/
22-
23-
plugin-macos-vX.Y.Z.zip
24-
plugin-macos/
25-
PluginName_artefacts/Release/
26-
AU/
27-
PluginName.component/
28-
VST3/
29-
PluginName.vst3/
30-
31-
plugin-linux-vX.Y.Z.zip
32-
plugin-linux/
33-
PluginName_artefacts/Release/
34-
LV2/
35-
PluginName.lv2/
36-
VST3/
37-
PluginName.vst3/
17+
pluginName-win-vX.Y.Z.zip
18+
VST3/
19+
PluginName.vst3/
20+
21+
pluginName-macos-vX.Y.Z.zip
22+
AU/
23+
PluginName.component/
24+
VST3/
25+
PluginName.vst3/
26+
27+
pluginName-linux-vX.Y.Z.zip
28+
LV2/
29+
PluginName.lv2/
30+
VST3/
31+
PluginName.vst3/
3832
```
3933

4034
安装时请直接复制这些文件夹之一:

0 commit comments

Comments
 (0)