Update release workflow and tasks
Some checks failed
Release Creation / build (release) Failing after 24s

- Updated the release workflow to use a more efficient method for setting the commit message.
- Added a new task to the VSCode tasks.json file to create a new release with a dynamic tag based on the current date and
time.

These changes improve the efficiency and automation of the release process, ensuring that releases are created with accurate
and up-to-date information.
This commit is contained in:
2025-02-07 09:43:21 -06:00
parent d4b5c3fe66
commit 2dd53178cf
2 changed files with 9 additions and 4 deletions

View File

@@ -35,8 +35,8 @@ jobs:
&& cp src/module.json dist/
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
- name: Echo commit message
run: echo "`${{ github.event.head_commit.message }}`"
- name: Setting commit message
run: echo "COMMIT_MSG=$(git log -1 --pretty=%B)" >> "$GITHUB_ENV" && echo "COMMIT MESSAGE IS `$COMMIT_MSG`"
# Create a release for this specific version
- name: Update Release with Files
@@ -46,4 +46,4 @@ jobs:
files: |-
./dist/module.json
./dist/module.zip
body: ${{ github.event.head_commit.message }}
body: $COMMIT_MSG

7
.vscode/tasks.json vendored
View File

@@ -4,10 +4,15 @@
"version": "2.0.0",
"tasks": [
{
"label": "new release",
"label": "commit and new release",
"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\"",
"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\""
}
]
}