Compare commits

..

8 Commits

Author SHA1 Message Date
a4a5a97fd6 20250207.091515
All checks were successful
Release Creation / build (release) Successful in 27s
2025-02-07 09:15:15 -06:00
bd30095e45 20250207.091003
All checks were successful
Release Creation / build (release) Successful in 28s
2025-02-07 09:10:03 -06:00
592889ea4c 20250207.085641
All checks were successful
Release Creation / build (release) Successful in 25s
2025-02-07 08:56:41 -06:00
3a1443c153 20250207.084320
Some checks failed
Release Creation / build (release) Failing after 21s
2025-02-07 08:43:20 -06:00
1142817d41 20250207.084053
Some checks failed
Release Creation / build (release) Failing after 23s
2025-02-07 08:40:53 -06:00
89f0b930f5 20250207.083655
Some checks failed
Release Creation / build (release) Failing after 22s
2025-02-07 08:36:55 -06:00
4e9bc012f9 20250207.083235
Some checks failed
Release Creation / build (release) Failing after 23s
2025-02-07 08:32:35 -06:00
187839be20 20250207.083131
Some checks failed
Release Creation / build (release) Failing after 25s
2025-02-07 08:31:31 -06:00
3 changed files with 7 additions and 14 deletions

View File

@@ -21,25 +21,16 @@ jobs:
id: sub_manifest_link_version id: sub_manifest_link_version
uses: microsoft/variable-substitution@v1 uses: microsoft/variable-substitution@v1
with: with:
files: 'module.json' files: 'src/module.json'
env: env:
version: ${{steps.get_version.outputs.version-without-v}} version: ${{steps.get_version.outputs.version-without-v}}
url: https://gitea.ascorrea.com/${{github.repository}} url: https://gitea.ascorrea.com/${{github.repository}}
manifest: https://gitea.ascorrea.com/${{github.repository}}/releases/latest/download/module.json 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 download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip
- env:
ZIP_FILE_NAME: "module.zip"
DIST_BRANCH_NAME: "main"
run: echo zip filename "${ZIP_FILENAME}" dist_branch "${DIST_BRANCH_NAME}"
# Create a zip file with all files required by the module to add to the release # Create a zip file with all files required by the module to add to the release
- env: - name: Create files (module.zip, module.json) for release
ZIP_FILE_NAME: "module.zip" 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.\"
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 # Create a release for this specific version
- name: Update Release with Files - name: Update Release with Files

2
.vscode/tasks.json vendored
View File

@@ -6,7 +6,7 @@
{ {
"label": "new release", "label": "new release",
"type": "shell", "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":[] "problemMatcher":[]
} }
] ]

View File

@@ -1,5 +1,7 @@
{ {
"name": "gitea-actions-demo", "name": "gitea-actions-demo",
"download": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/v0.2.1/module.zip", "download": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/v/module.zip",
"manifest": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/latest/module.json", "manifest": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/latest/module.json",
"version":"",
"url":""
} }