Compare commits

...

4 Commits

Author SHA1 Message Date
187839be20 20250207.083131
Some checks failed
Release Creation / build (release) Failing after 25s
2025-02-07 08:31:31 -06:00
b8ac60b8a2 20250207.082811
Some checks failed
Release Creation / build (release) Failing after 22s
2025-02-07 08:28:11 -06:00
a6278772fc 20250207.082305
Some checks failed
Release Creation / build (release) Failing after 20s
2025-02-07 08:23:05 -06:00
64a96747be 20250207.081601
All checks were successful
Release Creation / build (release) Successful in 29s
2025-02-07 08:16:01 -06:00
3 changed files with 27 additions and 6 deletions

2
.env
View File

@@ -1 +1 @@
TEST=123
TEST=123

View File

@@ -28,10 +28,18 @@ 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: echo zip filename "$ZIP_FILENAME" dist_branch "$DIST_BRANCH_NAME"
env:
ZIP_FILE_NAME: "module.zip"
DIST_BRANCH_NAME: "main"
# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip module.json src
- run: echo "Files- $(ls -la ${{ github.workspace }})"
- run: echo "secret- `${{ secrets.TEST }}`"
- 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
@@ -39,5 +47,5 @@ jobs:
uses: akkuman/gitea-release-action@v1
with:
files: |-
./module.json
./module.zip
./dist/module.json
./dist/module.zip

13
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"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\"",
"problemMatcher":[]
}
]
}