Skip to content

Commit 57e6455

Browse files
author
Citrine (rocky)
committed
Fixed issue with release system scripts directory
1 parent 6191b8a commit 57e6455

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/shadowfoundry-release-system.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ jobs:
9797
rm -rf package*.json
9898
rm -rf gulpfile.js
9999
rm -rf MIGRATION_PLAN.md
100+
# Save Discord push scripts before packaging
101+
cp -r scripts/push_to_discord /tmp/push_to_discord
102+
rm -rf scripts/push_to_discord
100103
mkdir sr5
101104
shopt -s extglob
102105
mv !(sr5) sr5/
103-
mv sr5/scripts .
104106
105107
- name: Zipping system
106108
if: steps.vars.outputs.type != 'skip'
@@ -236,7 +238,7 @@ jobs:
236238
- name: Prepare Discord scripts
237239
if: steps.vars.outputs.type != 'skip'
238240
run: |
239-
cd ./scripts/push_to_discord
241+
cd /tmp/push_to_discord
240242
npm install
241243
chmod +x *.js
242244
@@ -249,7 +251,7 @@ jobs:
249251
RELEASE_URL="https://github.com/${{ github.repository }}/releases/tag/${{ steps.vars.outputs.tag }}"
250252
BODY=$(printf '%s\n\n%s' "$RELEASE_NOTES" "$RELEASE_URL")
251253
jq -n --arg content "$BODY" '{content: $content}' | curl -sf -H "Content-Type: application/json" -d @- "$WEBHOOK_URL"
252-
./scripts/push_to_discord/file_webhook.js "$WEBHOOK_URL" "sr5_${{ steps.vars.outputs.tag }}.zip"
254+
/tmp/push_to_discord/file_webhook.js "$WEBHOOK_URL" "sr5_${{ steps.vars.outputs.tag }}.zip"
253255
254256
- name: Send oversized zip warning to Discord
255257
if: steps.vars.outputs.type != 'skip' && steps.zip_check.outputs.over_limit == 'true'

0 commit comments

Comments
 (0)