Compare commits
2 Commits
v20250207.
...
v20250207.
| Author | SHA1 | Date | |
|---|---|---|---|
|
6ac5ceb26a
|
|||
|
a4a5a97fd6
|
@@ -14,8 +14,7 @@ jobs:
|
|||||||
- name: Extract tag version number
|
- name: Extract tag version number
|
||||||
id: get_version
|
id: get_version
|
||||||
uses: battila7/get-version-action@v2
|
uses: battila7/get-version-action@v2
|
||||||
- run: echo ${{ steps.get_version.outputs.version-without-v }} ${{ github.repository }} ${{ github.event.release.tag_name }} ${{ secrets.GITHUB_TOKEN }} ${{ github.event.release.name }}
|
|
||||||
|
|
||||||
# Substitute the Manifest and Download URLs in the module.json
|
# Substitute the Manifest and Download URLs in the module.json
|
||||||
- name: Substitute Manifest and Download Links For Versioned Ones
|
- name: Substitute Manifest and Download Links For Versioned Ones
|
||||||
id: sub_manifest_link_version
|
id: sub_manifest_link_version
|
||||||
@@ -28,18 +27,13 @@ jobs:
|
|||||||
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
|
||||||
|
|
||||||
- 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
|
# 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_FILENAME: "module.zip"
|
run: >
|
||||||
DIST_BRANCH_NAME: "main"
|
mkdir -p dist
|
||||||
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.\"
|
&& git archive --format zip --output dist/module.zip HEAD:src
|
||||||
|
&& cp src/module.json dist/
|
||||||
- run: echo $(ls -lah)
|
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
|
||||||
|
|
||||||
# Create a release for this specific version
|
# Create a release for this specific version
|
||||||
- name: Update Release with Files
|
- name: Update Release with Files
|
||||||
@@ -48,4 +42,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
./dist/module.json
|
./dist/module.json
|
||||||
./dist/module.zip
|
./dist/module.zip
|
||||||
|
body: ${{ github.event.head_commit.message }}
|
||||||
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@@ -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":[]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user