Skip to content

Commit e3ae6b9

Browse files
committed
Update auto-zip.yml
1 parent a49b965 commit e3ae6b9

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/auto-zip.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,25 @@ jobs:
1515
with:
1616
token: ${{ secrets.GITHUB_TOKEN }} # Use the token with write access
1717

18-
- name: Create ZIP file
18+
- name: Create ZIP files
1919
run: |
2020
mkdir -p scripts/destiny/dist
21+
22+
# Zip each script file individually
2123
zip -j scripts/destiny/dist/destiny-windows-powershell.zip scripts/destiny/destiny-windows-powershell.ps1
24+
zip -j scripts/destiny/dist/destiny-windows-cmd.zip scripts/destiny/destiny-windows-cmd.cmd
25+
zip -j scripts/destiny/dist/destiny-linux-bash.zip scripts/destiny/destiny-linux-bash.sh
26+
zip -j scripts/destiny/dist/destiny-mac-bash.zip scripts/destiny/destiny-mac-bash.sh
2227
2328
- name: Configure Git
2429
run: |
2530
git config --global user.name "github-actions[bot]"
2631
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2732
28-
- name: Commit and Push ZIP file
33+
- name: Commit and Push ZIP files
2934
run: |
30-
git add scripts/destiny/dist/destiny-windows-powershell.zip
31-
git commit -m "Auto-generated ZIP for destiny-windows-powershell.ps1" || exit 0
35+
git add scripts/destiny/dist/*.zip
36+
git commit -m "Auto-generated ZIP files for all destiny scripts" || exit 0
3237
git push origin main
3338
env:
3439
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)