From a4a5a97fd6c953eb031a082f4c8713639f2103ae Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Fri, 7 Feb 2025 09:15:15 -0600 Subject: [PATCH] 20250207.091515 --- .gitea/workflows/main.yml | 13 ++----------- .vscode/tasks.json | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 3f9071f..2a4ee3c 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -28,18 +28,9 @@ jobs: manifest: https://gitea.ascorrea.com/${{github.repository}}/releases/latest/download/module.json download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip - - run: git reflog - env: - ZIP_FILENAME: "module.zip" - DIST_BRANCH_NAME: "main" - # Create a zip file with all files required by the module to add to the release - - env: - ZIP_FILENAME: "module.zip" - DIST_BRANCH_NAME: "main" - run: mkdir -p dist && git archive --format zip --output dist/${ZIP_FILENAME} HEAD:src && cp src/module.json dist/ && echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\" - - - run: echo $(ls -lah) + - name: Create files (module.zip, module.json) for release + run: mkdir -p dist && git archive --format zip --output dist/module.zip HEAD:src && cp src/module.json dist/ && echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\" # Create a release for this specific version - name: Update Release with Files diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 738988e..ab05f43 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,7 +6,7 @@ { "label": "new release", "type": "shell", - "command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git add . && git commit -m \"$TAG\" && git tag \"v$TAG\" && git push origin main --tags && tea release create --title \"$TAG\" --tag=\"$TAG\"", + "command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git add . && git commit -m \"$TAG\" && git push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\"", "problemMatcher":[] } ]