Compare commits
8 Commits
v20250207.
...
v20250207.
| Author | SHA1 | Date | |
|---|---|---|---|
|
4f0513c72c
|
|||
|
5e064a8dfb
|
|||
|
d0101c9666
|
|||
|
fc88596821
|
|||
|
859339b403
|
|||
|
2dd53178cf
|
|||
|
d4b5c3fe66
|
|||
|
6ac5ceb26a
|
@@ -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
|
||||||
@@ -30,7 +29,18 @@ jobs:
|
|||||||
|
|
||||||
# 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
|
||||||
- name: Create files (module.zip, module.json) for release
|
- 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.\"
|
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.\"
|
||||||
|
|
||||||
|
- name: Setting commit message
|
||||||
|
id: commit-message
|
||||||
|
run: >
|
||||||
|
COMMIT_MESSAGE=$(git log -1 --pretty=%B);
|
||||||
|
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"
|
||||||
|
&& echo "commit message is '$COMMIT_MESSAGE'"
|
||||||
|
|
||||||
# Create a release for this specific version
|
# Create a release for this specific version
|
||||||
- name: Update Release with Files
|
- name: Update Release with Files
|
||||||
@@ -39,4 +49,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
./dist/module.json
|
./dist/module.json
|
||||||
./dist/module.zip
|
./dist/module.zip
|
||||||
|
body: |-
|
||||||
|
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||||
10
.vscode/tasks.json
vendored
10
.vscode/tasks.json
vendored
@@ -4,10 +4,16 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "new release",
|
"label": "commit and new release",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"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\"",
|
"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": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "new release",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\"",
|
||||||
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user