@@ -47,11 +47,44 @@ jobs:
4747 mv Kdtree_UE${{ matrix.unreal_engine_version }}_${{ matrix.version }}.zip release-plugin-${{ matrix.version }}
4848
4949 - name : Upload artifact
50- uses : actions/upload-artifact@v3
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : Kdtree_${{ matrix.unreal_engine_version }}_${{ matrix.version }}
53+ path : " release-plugin-${{ matrix.version }}"
54+
55+ merge-plugin-pack :
56+ name : Merge packed plugins
57+ runs-on : ubuntu-latest
58+ needs : [plugin-pack]
59+ strategy :
60+ fail-fast : false
61+ matrix :
62+ version :
63+ ["free", "full"]
64+ steps :
65+ - name : Download artifacts
66+ uses : actions/download-artifact@v4
67+ with :
68+ pattern : Kdtree_*_${{ matrix.version }}
69+ merge-multiple : true
70+ path : dist
71+
72+ - name : Move artifacts
73+ run : |
74+ mkdir release-plugin-${{ matrix.version }}
75+ mv dist/Kdtree_*_${{ matrix.version }}.zip release-plugin-${{ matrix.version }}
76+
77+ - name : Updload artifacts
78+ uses : actions/upload-artifact@v4
5179 with :
5280 name : Kdtree_${{ matrix.version }}
5381 path : " release-plugin-${{ matrix.version }}"
5482
83+ - name : Delete unused artifacts
84+ uses : geekyeggo/delete-artifact@v5
85+ with :
86+ name : Kdtree_*_${{ matrix.version }}
87+
5588 sample-pack :
5689 name : Pack sample sources
5790 runs-on : ubuntu-latest
@@ -66,21 +99,21 @@ jobs:
6699 mv samples/SampleProject.zip release-sample
67100
68101 - name : Upload artifact
69- uses : actions/upload-artifact@v3
102+ uses : actions/upload-artifact@v4
70103 with :
71104 name : SampleProject
72105 path : " release-sample"
73106
74107 publish :
75108 name : Publish
76- needs : [plugin-pack, sample-pack]
109+ needs : [merge- plugin-pack, sample-pack]
77110 if : startsWith(github.ref, 'refs/tags/v')
78111 runs-on : ubuntu-latest
79112 steps :
80113 - name : Checkout repo
81114 uses : actions/checkout@v2
82115 - name : Fetch Artifacts
83- uses : actions/download-artifact@v3
116+ uses : actions/download-artifact@v4
84117 with :
85118 path : dist
86119 - name : Install hub command
0 commit comments