Skip to content

Compress and Store App Folder #5

Compress and Store App Folder

Compress and Store App Folder #5

name: Compress and Store App Folder
on:
push:
branches:
- master
paths:
- 'app/**'
workflow_dispatch:
jobs:
compress_and_store:
runs-on: ubuntu-latest
steps:
- name: Checkout repository content
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install zip
run: sudo apt-get install zip
- name: Remove existing app.zip if it exists
run: |
if [ -f app.zip ]; then
git rm app.zip
fi
- name: Debug - List files in repository
run: ls -R
- name: Compress /app folder
run: zip -r app.zip app
- name: Commit and push the zip file
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add app.zip
git commit -m "Add compressed app folder"
git push