Skip to content

Add files via upload #12

Add files via upload

Add files via upload #12

Workflow file for this run

name: Combine and Zip Files
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
zip:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up zip and rsync
run: sudo apt-get install zip unzip rsync -y
- name: Unzip tweaks.zip
run: unzip tweaks.zip -d tweaks
- name: Copy repository files over tweaks files
run: rsync -av --exclude='tweaks.zip' --exclude='tweaks/' ./ tweaks/
- name: Create pack.zip excluding tweaks.zip and extracted tweaks folder
run: |
cd tweaks
zip -r ../pack.zip . -x "tweaks.zip" "tweaks/"
- name: Commit and push pack.zip
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add pack.zip
git commit -m 'Add generated pack.zip'
git push https://${{ secrets.GH_PAT }}@github.com/${{ github.repository }}.git HEAD:main