Skip to content

Commit 81cb071

Browse files
committed
Include a version file in the distribution
1 parent 1e4b418 commit 81cb071

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
id: set_version
2323
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
2424

25+
- name: Create version file
26+
run: echo "${{ env.RELEASE_VERSION }}" > version
27+
2528
- name: Create distribution
2629
run: |
2730
mkdir temp_dist
@@ -31,14 +34,15 @@ jobs:
3134
--exclude='.github' \
3235
--exclude='temp_dist' \
3336
. temp_dist/
37+
cp version temp_dist/
3438
3539
- name: Create ZIP archive
3640
run: |
3741
cd temp_dist
3842
zip -r ../wp-cli-sqlite-command-${{ env.RELEASE_VERSION }}.zip .
3943
4044
- name: Clean up
41-
run: rm -rf temp_dist
45+
run: rm -rf temp_dist version
4246

4347
- name: Upload distribution as artifact
4448
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)