Update renameClicks.yml #46
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: Rename All Clicks and Deploy Pages | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
rename: | |
name: Rename and Deploy Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup ffmpeg | |
uses: FedericoCarboni/setup-ffmpeg@v3 | |
id: setup-ffmpeg | |
- name: Install Packages | |
run: | | |
python -m pip install ffmpeg | |
python -m pip install pydub | |
- name: Run Sounds Copier | |
run: python ./.github/CopySoundsForRename.py | |
- name: Run File Namer | |
run: cd .github/FileNamer; python main.py | |
- name: Copy Output to the Original Folder | |
run: python .github/CopySoundsForRenamePT2.py | |
- name: Update Repository | |
run: | | |
git config user.name "Sounds Updater" | |
git config user.email [email protected] | |
git add . | |
git commit -m "Update Sounds (renames all multiple click files)" && git push || echo "Nothing to commit, there's no changes." | |
- name: Compress Into Zip for pages | |
run: | | |
for dir in Meme/*/ | |
do | |
dir=${dir%*/} | |
7z a ${dir}.zip ${dir} | |
done | |
for dir in Useful/*/ | |
do | |
dir=${dir%*/} | |
7z a ${dir}.zip ${dir} | |
done |