Compare commits
9 Commits
v20250207.
...
20250207.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
592889ea4c
|
|||
|
3a1443c153
|
|||
|
1142817d41
|
|||
|
89f0b930f5
|
|||
|
4e9bc012f9
|
|||
|
187839be20
|
|||
|
b8ac60b8a2
|
|||
|
a6278772fc
|
|||
|
64a96747be
|
@@ -21,17 +21,25 @@ jobs:
|
||||
id: sub_manifest_link_version
|
||||
uses: microsoft/variable-substitution@v1
|
||||
with:
|
||||
files: 'module.json'
|
||||
files: 'src/module.json'
|
||||
env:
|
||||
version: ${{steps.get_version.outputs.version-without-v}}
|
||||
url: https://gitea.ascorrea.com/${{github.repository}}
|
||||
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
|
||||
- run: zip -r ./module.zip module.json src
|
||||
- run: echo "Files- $(ls -la ${{ github.workspace }})"
|
||||
- run: echo "secret- `${{ secrets.TEST }}`"
|
||||
- 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)
|
||||
|
||||
# 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
13
.vscode/tasks.json
vendored
Normal 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":[]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user