Skip to content

Commit 0077eaf

Browse files
committed
Fix:
Compressed file with wrong path
1 parent bcff33c commit 0077eaf

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/go.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,25 @@ jobs:
4747
- name: Make compiled binary available
4848
run: |
4949
echo "Working on making the compiled binary available..."
50-
mkdir latest-build staging public
51-
cp -r ./undervolt-go ./latest-build/ # Copy the binary to the latest-build directory
52-
cp -r ./dist/script/* ./latest-build/ # Copy the install scripts to the latest-build directory
50+
mkdir staging public
51+
cp -r ./undervolt-go ./staging/ # Copy the binary to the staging directory
52+
cp -r ./dist/script/* ./staging/ # Copy the install scripts to the staging directory
5353
echo "Ready to deploy!"
5454
- name: Compress the 'latest-build' under 'staging' directory and make it available in 'public'
5555
run: |
56-
zip -r staging/undervolt-go.zip ./latest-build/ # Make a zip file of the latest build
57-
cp -r staging/undervolt-go.zip ./public/
56+
zip -r undervolt-go.zip ./staging/ # Make a zip file of the latest build
57+
cp -r undervolt-go.zip ./public/
5858
echo "Compress complete and available in public directory!"
59+
echo "Removing the now unused staging directory and undervolt-go.zip..."
60+
rm -r undervolt-go.zip staging
61+
echo "Removing complete!"
5962
- name: Output the files structure into a JSON file
6063
run: |
6164
# GitHub Actions' ubuntu-latest comes preinstalled with tree. So no need to install tree.
6265
#sudo apt update
6366
#sudo apt install -y tree
64-
tree -J staging > ./public/files.json
67+
tree -J public > files.json
68+
cp -r files.json ./public/
6569
echo "JSON Manifest generated with the directory structure!"
6670
- name: Make web pages available
6771
run: |

0 commit comments

Comments
 (0)