-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 1.18 KB
/
main.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
name: Create Zip Archive
on:
push:
branches:
- main
jobs:
create-zip:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Zip Archive
run: |
# Create a "scalewithus" folder inside the zip
mkdir -p /tmp/scalewithus/scalewithus
# Copy all files from the main branch to the "scalewithus" folder
cp -r ./* /tmp/scalewithus/scalewithus/
# Create a zip archive named "archive.zip" containing the "scalewithus" folder
# cd /tmp/
# zip -r scalewithus.zip scalewithus
# Optionally, you can move the archive to a specific location or upload it as an artifact
# mv scalewithus.zip /tmp/scalewithus # Move the archive to a specific location
# echo "::set-output name=zip-path::/tmp/scalewithus/archive.zip" # Set an output variable to pass the zip file path to the next step
working-directory: ${{ github.workspace }}
- name: Upload Zip Artifact
uses: actions/upload-artifact@v2
with:
name: Scalewithus WHMCS Module
path: /tmp/scalewithus