Skip to content

Commit

Permalink
try a different file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Moggach committed Nov 30, 2023
1 parent 745584d commit 05123f5
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions .github/workflows/zip-file-on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
name: Zip Files on Push
name: Zip and Upload Folder

on:
push:
branches:
- test-wordpress-playground
push:
branches:
- test-wordpress-playground # Change this to your default branch

jobs:
zip-files:
runs-on: ubuntu-latest
zip-and-upload:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Create ZIP file
run: |
# Define the files or directories you want to zip
DIRECTORY_TO_ZIP="web/app/themes/future-natures/"
- name: Zip Folder
run: |
cd web/app/themes/
zip -r future-natures.zip future-natures
# Create a unique timestamp for the zip file
TIMESTAMP=$(date +'%Y%m%d%H%M%S')
# Create the zip file
cd $DIRECTORY_TO_ZIP
zip -r "../archive_$TIMESTAMP.zip" .
- name: Upload ZIP file as artifact
uses: actions/upload-artifact@v2
with:
name: zipped-files
path: archive_*.zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: future-natures
path: web/app/themes/future-natures.zip

0 comments on commit 05123f5

Please sign in to comment.