From 4f02470a329b5f65dc36fbe253c532cef0536392 Mon Sep 17 00:00:00 2001 From: kokodev Date: Thu, 10 Oct 2024 17:41:51 -0700 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b4e81dadf..0abcd159c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,16 +27,25 @@ jobs: rm -rf node_modules tests CODE_OF_CONDUCT.md CONTRIBUTING.md flake.lock flake.nix phpunit.xml shell.nix echo "Unnecessary files removed." + - name: Create lock file + run: yarn install --frozen-lockfile # Creates or updates the lock file + - name: Create release directory run: mkdir -p release/kokofixcomputers - name: Wait for previous tasks to finish run: sleep 3s + - name: Prepare files for packaging + run: | + mkdir -p /tmp/package + cp -r ./release/kokofixcomputers/* /tmp/package/ + echo "Files prepared for packaging." + - name: Package the build into a tar file run: | TAR_FILE="release/kokofixcomputers/panel.tar.gz" # Set the desired filename here - tar -czf "$TAR_FILE" . # The dot (.) indicates to include everything in the current directory + tar -czf "$TAR_FILE" -C /tmp/package . # Create tar from temp directory echo "Release created at $TAR_FILE" - name: Upload release artifact