-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (84 loc) · 3.44 KB
/
Copy pathrelease.yml
File metadata and controls
101 lines (84 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Release
on:
push:
tags:
- "v*"
release:
types: [published]
permissions:
contents: write
jobs:
build-and-release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- name: Ensure CSInterface.js is present
run: |
if [ ! -f CSInterface.js ]; then
echo "CSInterface.js not found in repository — creating placeholder"
echo "// CSInterface.js must be copied from your Adobe After Effects installation." > CSInterface.js
echo "// The installer will find and copy it automatically." >> CSInterface.js
fi
- name: Build standalone executables
run: bun run build-bin
- name: Ensure .debug is present
run: |
if [ ! -f .debug ]; then
echo ".debug not found in repository — creating placeholder"
echo '{"type":"node","request":"launch","name":"CEP Debug"}' > .debug
fi
- name: Create source package
run: |
mkdir -p package/CSXS package/src package/dist package/assets/icons package/assets/styles
cp -r CSXS/* package/CSXS/
cp src/index.html package/src/
cp dist/index.js package/dist/
cp -r assets/icons/* package/assets/icons/
cp -r assets/styles/* package/assets/styles/
cp manifest.json package/
cp CSInterface.js package/
cp .debug package/
cp install.sh package/
cp install.ps1 package/
cp uninstall.sh package/
cp uninstall.ps1 package/
cp README.md package/
- name: Create per-platform bundles and source archive
run: |
VERSION="${GITHUB_REF_NAME#v}"
# Source archive
cd package && zip -r "../mstudio-ae-plugin-source-${VERSION}.zip" . && cd ..
# macOS ARM64 bundle
mkdir -p bundle-macos-arm64
cp dist-bin/install-darwin-arm64 bundle-macos-arm64/
cp dist-bin/uninstall-darwin-arm64 bundle-macos-arm64/
cp README.md bundle-macos-arm64/
chmod +x bundle-macos-arm64/install-darwin-arm64 bundle-macos-arm64/uninstall-darwin-arm64
cd bundle-macos-arm64 && zip -r "../mstudio-ae-plugin-macos-arm64-${VERSION}.zip" . && cd ..
# macOS x64 bundle
mkdir -p bundle-macos-x64
cp dist-bin/install-darwin-x64 bundle-macos-x64/
cp dist-bin/uninstall-darwin-x64 bundle-macos-x64/
cp README.md bundle-macos-x64/
chmod +x bundle-macos-x64/install-darwin-x64 bundle-macos-x64/uninstall-darwin-x64
cd bundle-macos-x64 && zip -r "../mstudio-ae-plugin-macos-x64-${VERSION}.zip" . && cd ..
# Windows x64 bundle
mkdir -p bundle-windows-x64
cp dist-bin/install-windows-x64.exe bundle-windows-x64/
cp dist-bin/uninstall-windows-x64.exe bundle-windows-x64/
cp README.md bundle-windows-x64/
cd bundle-windows-x64 && zip -r "../mstudio-ae-plugin-windows-x64-${VERSION}.zip" . && cd ..
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: |
mstudio-ae-plugin-source-*.zip
mstudio-ae-plugin-macos-arm64-*.zip
mstudio-ae-plugin-macos-x64-*.zip
mstudio-ae-plugin-windows-x64-*.zip