Skip to content

Commit 91aec39

Browse files
committed
Improved release.yml
1 parent a8a47d2 commit 91aec39

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ jobs:
3737
id: build
3838
shell: bash
3939
run: |
40-
release_name="${{ env.PROJECT_NAME }}-${{ steps.version.outputs.version-without-v }}"
4140
sed -i "s/@package_version@/${{ steps.version.outputs.version-without-v }}/g" bin/m4b-tool.php
4241
composer install ${{ env.COMPOSER_FLAGS }} \
4342
&& composer bin box require --dev humbug/box \
4443
&& php -d phar.readonly=off vendor/bin/box compile \
4544
&& chmod +x dist/*.phar \
46-
&& zip "${release_name}.zip" "./dist/m4b-tool.phar" \
47-
&& tar czvf "${release_name}.tar.gz" "./dist/m4b-tool.phar"
45+
&& zip dist/${{ env.PROJECT_NAME }}-${{ steps.version.outputs.version-without-v }}.zip dist/m4b-tool.phar \
46+
&& tar czvf dist/${{ env.PROJECT_NAME }}-${{ steps.version.outputs.version-without-v }}.tar.gz ./dist/m4b-tool.phar
4847
4948
# RELEASE to github
5049
- name: Release
@@ -54,8 +53,8 @@ jobs:
5453
body_path: doc/release/release-notes-${{ steps.version.outputs.version }}.md
5554
draft: false
5655
files: |
57-
${release_name}.tar.gz
58-
${release_name}.zip
56+
dist/${{ env.PROJECT_NAME }}-${{ steps.version.outputs.version-without-v }}.tar.gz
57+
dist/${{ env.PROJECT_NAME }}-${{ steps.version.outputs.version-without-v }}.zip
5958
dist/m4b-tool.phar
6059
6160
# RELEASE to dockerhub

0 commit comments

Comments
 (0)