Skip to content

Commit 24e957a

Browse files
committed
Variou fixes for the faustwp release
1. Renamed files correctly e.g. faustwp.1.8.1.zip 2. Fixed issue with zips attaching to a tag rather than the canary branch and creating another releae. 3. Fixed issue that the zip is using dist rather than faustwp as the directory to be zipped.
1 parent 134f823 commit 24e957a

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/actions/release-plugin/action.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ runs:
3131
mkdir -p dist
3232
rsync -av --exclude-from="${{ env.PLUGIN_DIR }}/.distignore" ${{ env.PLUGIN_DIR }}/ dist/${{ env.SLUG }}
3333
34-
zip_file="faustwp-${{ env.VERSION }}.zip"
35-
zip -r "$zip_file" "dist/${{ env.SLUG }}"
34+
zip_file="faustwp.${{ env.VERSION }}.zip"
35+
cd "dist/${{ env.SLUG }}"
36+
zip -r "../../$zip_file" .
37+
cd -
3638
3739
echo "zip-path=$PWD/$zip_file" >> $GITHUB_ENV
3840
shell: bash
@@ -53,11 +55,11 @@ runs:
5355
# Allow updates for .org
5456
sed -i -e '/\* Update URI: false/d' "dist/${{ env.SLUG }}/faustwp.php"
5557
56-
# Create .org zip file
57-
org_zip_file="faustwp-${{ env.VERSION }}.org.zip"
58-
zip -r "$org_zip_file" "dist/${{ env.SLUG }}"
58+
org_zip_file="faustwp.${{ env.VERSION }}.org.zip"
59+
cd "dist/${{ env.SLUG }}"
60+
zip -r "../../$org_zip_file" .
61+
cd -
5962
60-
# Save zip path to output
6163
echo "org-zip-path=$PWD/$org_zip_file" >> $GITHUB_ENV
6264
shell: bash
6365

@@ -67,8 +69,8 @@ runs:
6769
with:
6870
token: ${{ inputs.github_token }}
6971
files: ${{ env.zip-path }}
70-
asset_name: faustwp-${{ env.VERSION }}.zip
71-
tag_name: ${{ env.VERSION }}
72+
asset_name: faustwp.${{ env.VERSION }}.zip
73+
tag_name: canary
7274
overwrite: true
7375

7476
- id: upload-org-release-to-github
@@ -77,6 +79,6 @@ runs:
7779
with:
7880
token: ${{ inputs.github_token }}
7981
files: ${{ env.org-zip-path }}
80-
asset_name: faustwp-${{ env.VERSION }}.org.zip
81-
tag_name: ${{ env.VERSION }}
82+
asset_name: faustwp.${{ env.VERSION }}.org.zip
83+
tag_name: canary
8284
overwrite: true

0 commit comments

Comments
 (0)