-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (36 loc) · 995 Bytes
/
compress-and-store.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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