Skip to content

Commit

Permalink
fix zip archive folder structure (contents have to be in subdirectory…
Browse files Browse the repository at this point in the history
…, moodle expects that)
  • Loading branch information
Glutamat42 committed Dec 14, 2024
1 parent be5f688 commit ea8b85c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ jobs:
run: |
rm -rf .github tests vendor .gitignore composer.json composer.lock phpunit.xml dev_utils phpunit.xml infection.json5
- name: Create release archives
- name: Create release archive
run: |
zip -x .git -r /tmp/moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip *
FOLDER_NAME=$(echo ${{ env.PLUGIN_NAME }} | cut -d'_' -f2)
mkdir -p /tmp/$FOLDER_NAME
cp -r * /tmp/$FOLDER_NAME
cd /tmp
zip -r moodle-${{ env.PLUGIN_NAME }}-${{ github.ref_name }}.zip $FOLDER_NAME
- name: Calculate MD5 hash
run: |
Expand Down

0 comments on commit ea8b85c

Please sign in to comment.