Merge pull request #1 from GBLodb/patch-1 #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package Repository | |
on: | |
push: | |
branches: | |
- overlord | |
paths: | |
- 'Mods/**' | |
- 'resources/**' | |
- 'localization/**' | |
- '.github/workflows/package.yml' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.1.5 | |
with: | |
submodules: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Per-mod files/directories clean-up | |
run: | | |
echo "Start re-arranging mod files..." | |
RPATH="Mods/CheesyJokers" | |
mv $RPATH/CheesyJokers/* $RPATH/ | |
rm -rf $RPATH/CheesyJokers | |
echo "CheesyJokers Done." | |
mv "Mods/SDM0_Mods/SDM_0's Stuff" Mods/ | |
rm -rf Mods/SDM0_Mods | |
echo "SDM0_Mods Done." | |
RPATH="Mods/MystMods" | |
mv $RPATH/Steamodded/MystBlinds $RPATH/MystBlinds | |
mv $RPATH/Steamodded/MystJokers $RPATH/MystJokers | |
rm -rf $RPATH/{Steamodded,Balamod,Infodumps} | |
echo "MystMods Done." | |
mv Mods/Codex-Arcanum/mod Mods/ca-temp | |
rm -rf Mods/Codex-Arcanum | |
mv Mods/ca-temp Mods/Codex-Arcanum | |
echo "Codex-Arcanum Done." | |
mv Mods/BossJokers/BossJokers/* Mods/BossJokers/ | |
rm -rf Mods/BossJokers/BossJokers | |
echo "BossJokers Done." | |
RPATH="Mods/Steamodded" | |
mv $RPATH/example_mods/Mods/MoreSpeeds.lua Mods/ | |
rm -rf $RPATH/{7-zip,example_mods,requirements.txt} | |
echo "Steamodded Done." | |
RPATH="Mods/DX-Tarots" | |
mv Balachrom/Tarots_dx1x.png $RPATH/assets/1x/ | |
mv Balachrom/Tarots_dx2x.png $RPATH/assets/2x/ | |
mv $RPATH/assets/1x/Tarots_dx1x.png $RPATH/assets/1x/Tarots_dx.png | |
mv $RPATH/assets/2x/Tarots_dx2x.png $RPATH/assets/2x/Tarots_dx.png | |
echo "DX-Tarots Done." | |
rm -rf Mods/Betmma-mods/5_legendary_challenges | |
echo "Betmma-mods Done." | |
- name: Universal unwanted files/directories removal | |
run: | | |
echo "Start deleting redundant files..." | |
rm -rf .gitignore .gitmodules .github | |
find ./Mods -maxdepth 2 -type f -name 'icon.png' -exec rm -f {} + | |
find ./Mods -maxdepth 2 -type f -name 'index.html' -exec rm -f {} + | |
find ./Mods -maxdepth 2 -type f -name 'm6x11plus.ttf' -exec rm -f {} + | |
find . -type d -name '.git' -exec rm -rf {} + | |
find . -type d -name 'site' -exec rm -rf {} + | |
find . -type d -name '.github' -exec rm -rf {} + | |
find . -type d -name '.vscode' -exec rm -rf {} + | |
find . -type d -name 'gitresources' -exec rm -rf {} + | |
find . -type f -name '*.py' -exec rm -f {} + | |
find . -type f -name '*.sh' -exec rm -f {} + | |
find . -type f -name '*.bat' -exec rm -f {} + | |
find . -type f -name '*.ps1' -exec rm -f {} + | |
find . -type f -name '.git' -exec rm -rf {} + | |
find . -type f -iname 'LICENSE' -exec rm -f {} + | |
find . -type f -iname 'style.css' -exec rm -f {} + | |
find . -type f -iname 'README.md' -exec rm -f {} + | |
find . -type f -iname 'README.asc' -exec rm -f {} + | |
find . -type f -name '.gitignore' -exec rm -rf {} + | |
find . -type f -iname 'changelog.md' -exec rm -f {} + | |
find . -type f -iname 'addjokers.js' -exec rm -f {} + | |
find . -type f -iname 'CHANGELOG.md' -exec rm -f {} + | |
find . -type f -iname 'manifest.json' -exec rm -f {} + | |
find . -type f -name '.gitattributes' -exec rm -rf {} + | |
find . -type f -iname 'generate_sprite.fish' -exec rm -f {} + | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: pack_snapshot | |
path: ./ |