From a6278772fc9cad4d1ca37861993cec1a47f6e6e1 Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Fri, 7 Feb 2025 08:23:05 -0600 Subject: [PATCH] 20250207.082305 --- .gitea/workflows/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 87b0d62..796827c 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -29,7 +29,12 @@ jobs: download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip # Create a zip file with all files required by the module to add to the release - - run: zip -r ./module.zip module.json src/* + - env: + ZIP_FILE_NAME: "module.zip" + DIST_BRANCH_NAME: "main" + run: mkdir -p dist && git archive --format zip --output dist/${ZIP_FILENAME} ${DIST_BRANCH_NAME}:src && cp src/module.json dist/ && echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\" + + - run: echo $(ls -lah) # Create a release for this specific version - name: Update Release with Files @@ -37,5 +42,5 @@ jobs: uses: akkuman/gitea-release-action@v1 with: files: |- - ./module.json - ./module.zip \ No newline at end of file + ./dist/module.json + ./dist/module.zip \ No newline at end of file