Skip to content

Commit 26ee319

Browse files
authored
Merge branch 'main' into fix/tests
2 parents 5071359 + 58e7edb commit 26ee319

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.github/workflows/deployment.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
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: |

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)