File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed
Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 5454 name : cli_version
5555 path : cli_version.txt
5656
57+ - name : Upload manifest file
58+ uses : actions/upload-artifact@v4
59+ with :
60+ name : manifest
61+ path : vendor/wp-cli/wp-cli/manifest.json
62+
5763 - name : Build the Phar file
5864 run : php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --version=$CLI_VERSION
5965
@@ -213,6 +219,11 @@ jobs:
213219 run : |
214220 cat cli_version.txt > phar/NIGHTLY_VERSION
215221
222+ - name : Download manifest file
223+ uses : actions/download-artifact@v4
224+ with :
225+ name : manifest
226+
216227 - name : Download built Phar file
217228 uses : actions/download-artifact@v4
218229 with :
@@ -222,11 +233,17 @@ jobs:
222233 if : ${{ contains(github.ref, 'release') }}
223234 run : |
224235 echo 'FILENAME=wp-cli-release.phar' > $GITHUB_ENV
236+ echo 'MANIFEST_FILENAME=wp-cli-release.manifest.json' > $GITHUB_ENV
225237
226238 - name : Set file name for main branch
227239 if : ${{ contains(github.ref, 'main') }}
228240 run : |
229241 echo 'FILENAME=wp-cli-nightly.phar' > $GITHUB_ENV
242+ echo 'MANIFEST_FILENAME=wp-cli-nightly.manifest.json' > $GITHUB_ENV
243+
244+ - name : Move manifest file into correct location
245+ run : |
246+ mv manifest.json phar/$MANIFEST_FILENAME
230247
231248 - name : Move built Phar file into correct location
232249 run : |
You can’t perform that action at this time.
0 commit comments