|
10 | 10 | - main
|
11 | 11 | - develop
|
12 | 12 |
|
| 13 | +env: |
| 14 | + PLUGIN_NAME: "ZePolA" |
| 15 | + |
13 | 16 | jobs:
|
14 | 17 | build:
|
15 | 18 | if: ${{ !contains(github.event.head_commit.message, '[CI SKIP]') }}
|
@@ -105,32 +108,107 @@ jobs:
|
105 | 108 |
|
106 | 109 | - name: Move AU artifacts
|
107 | 110 | if: runner.os == 'MacOS'
|
108 |
| - run: ./scripts/nest -cd ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.au_prefix }}${{ matrix.plugin_name }}.component |
| 111 | + run: ./scripts/nest -cd ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.au_prefix }}${{ env.PLUGIN_NAME }}.component |
109 | 112 |
|
110 | 113 | - name: Move VST3 artifacts
|
111 |
| - run: ./scripts/nest -cd ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.vst3_prefix }}${{ matrix.plugin_name }}.vst3 |
| 114 | + run: ./scripts/nest -cd ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.vst3_prefix }}${{ env.PLUGIN_NAME }}.vst3 |
112 | 115 |
|
113 | 116 | - name: Move Standalone artifacts
|
114 |
| - run: ./scripts/nest -cd ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.standalone_prefix }}${{ matrix.plugin_name }}${{ matrix.standalone_ext }} |
| 117 | + run: ./scripts/nest -cd ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.standalone_prefix }}${{ env.PLUGIN_NAME }}${{ matrix.standalone_ext }} |
115 | 118 |
|
116 | 119 | - name: Upload AU
|
117 | 120 | if: runner.os == 'MacOS'
|
118 | 121 | uses: actions/upload-artifact@v4
|
119 | 122 | with:
|
120 |
| - name: ${{ matrix.plugin_name }}_${{ matrix.label }}_au |
121 |
| - path: ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.au_prefix }}${{ matrix.plugin_name }}.component |
| 123 | + name: ${{ env.PLUGIN_NAME }}_${{ matrix.label }}_au |
| 124 | + path: ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.au_prefix }}${{ env.PLUGIN_NAME }}.component |
122 | 125 |
|
123 | 126 | - name: Upload VST3
|
124 | 127 | uses: actions/upload-artifact@v4
|
125 | 128 | with:
|
126 |
| - name: ${{ matrix.plugin_name }}_${{ matrix.label }}_vst3 |
127 |
| - path: ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.vst3_prefix }}${{ matrix.plugin_name }}.vst3 |
| 129 | + name: ${{ env.PLUGIN_NAME }}_${{ matrix.label }}_vst3 |
| 130 | + path: ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.vst3_prefix }}${{ env.PLUGIN_NAME }}.vst3 |
128 | 131 |
|
129 | 132 | - name: Upload Standalone
|
130 | 133 | uses: actions/upload-artifact@v4
|
131 | 134 | with:
|
132 |
| - name: ${{ matrix.plugin_name }}_${{ matrix.label }}_standalone |
133 |
| - path: ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.standalone_prefix }}${{ matrix.plugin_name }}${{ matrix.standalone_ext }} |
| 135 | + name: ${{ env.PLUGIN_NAME }}_${{ matrix.label }}_standalone |
| 136 | + path: ${{ matrix.plugin_buildir }}/${{ matrix.build_prefix }}/${{ matrix.standalone_prefix }}${{ env.PLUGIN_NAME }}${{ matrix.standalone_ext }} |
134 | 137 |
|
135 | 138 | outputs:
|
136 | 139 | plugin_version: ${{ steps.plugin-version.outputs.PLUGIN_VERSION }}
|
| 140 | + |
| 141 | + release: |
| 142 | + if: ${{ contains(github.event.head_commit.message, '[RELEASE]') || contains(github.event.head_commit.message, '[PRERELEASE]') }} |
| 143 | + runs-on: ubuntu-latest |
| 144 | + needs: [build] |
| 145 | + |
| 146 | + steps: |
| 147 | + - uses: actions/download-artifact@v4 |
| 148 | + with: |
| 149 | + path: artifacts |
| 150 | + |
| 151 | + - name: List artifacts |
| 152 | + run: tree artifacts |
| 153 | + |
| 154 | + - name: Create release assets folder |
| 155 | + run: mkdir rassets |
| 156 | + |
| 157 | + - name: Prepare folder for LIM Plugin Collection Specs zip file |
| 158 | + run: mkdir -p collection/Windows collection/MacOS collection/Linux |
| 159 | + |
| 160 | + - name: Set permissions for Linux executable |
| 161 | + run: chmod +x artifacts/${{ env.PLUGIN_NAME }}_linux_standalone/${{ env.PLUGIN_NAME }} |
| 162 | + |
| 163 | + - name: Set permissions for Mac executable |
| 164 | + run: chmod +x artifacts/${{ env.PLUGIN_NAME }}_macos_standalone/${{ env.PLUGIN_NAME }}.app/Contents/MacOS/${{ env.PLUGIN_NAME }} |
| 165 | + |
| 166 | + - name: Compress assets |
| 167 | + working-directory: artifacts |
| 168 | + run: | |
| 169 | + for d in ${{ env.PLUGIN_NAME }}_*_* ; do |
| 170 | + cd "${d}" && \ |
| 171 | + dest="../../rassets/${d}_v${{ needs.build.outputs.plugin_version }}.zip" && \ |
| 172 | + echo zip -r "${dest}" * && \ |
| 173 | + zip -r "${dest}" * && \ |
| 174 | + cd .. |
| 175 | + done; |
| 176 | +
|
| 177 | + - name: Copy assets to zip folder |
| 178 | + run: | |
| 179 | + for d in artifacts/${{ env.PLUGIN_NAME }}_*_* ; do |
| 180 | + case "$d" in |
| 181 | + *_linux_*) ZIP_PREFIX="Linux/" ;; |
| 182 | + *_win_*) ZIP_PREFIX="Windows/" ;; |
| 183 | + *_macos_*) ZIP_PREFIX="MacOS/" ;; |
| 184 | + *) ZIP_PREFIX="" ;; |
| 185 | + esac && \ |
| 186 | + dest="collection/${ZIP_PREFIX}" && \ |
| 187 | + echo cp -r "${d}"/* "${dest}" && \ |
| 188 | + cp -r "${d}"/* "${dest}" |
| 189 | + done; |
| 190 | +
|
| 191 | + - name: List zip folder |
| 192 | + run: tree collection |
| 193 | + |
| 194 | + - name: Compress LIM Plugin Collection Specs zip file |
| 195 | + working-directory: collection |
| 196 | + run: zip -r ../rassets/${{ env.PLUGIN_NAME }}_v${{ needs.build.outputs.plugin_version }}.zip * |
| 197 | + |
| 198 | + - name: List assets |
| 199 | + run: ls rassets |
| 200 | + |
| 201 | + - uses: actions-ecosystem/action-push-tag@v1 |
| 202 | + with: |
| 203 | + tag: v${{ needs.build.outputs.plugin_version }} |
| 204 | + message: ':bookmark: Version ${{ needs.build.outputs.plugin_version }}' |
| 205 | + |
| 206 | + - name: Release |
| 207 | + uses: softprops/action-gh-release@v2 |
| 208 | + with: |
| 209 | + tag_name: v${{ needs.build.outputs.plugin_version }} |
| 210 | + name: Version ${{ needs.build.outputs.plugin_version }} |
| 211 | + draft: true |
| 212 | + prerelease: ${{ contains(github.event.head_commit.message, '[PRERELEASE]') }} |
| 213 | + files: |
| 214 | + rassets/* |
0 commit comments