Compare commits

...

3 Commits

Author SHA1 Message Date
859339b403 20250207.094650
All checks were successful
Release Creation / build (release) Successful in 24s
2025-02-07 09:46:50 -06:00
2dd53178cf 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.
2025-02-07 09:43:21 -06:00
d4b5c3fe66 20250207.092640
All checks were successful
Release Creation / build (release) Successful in 24s
2025-02-07 09:26:40 -06:00
2 changed files with 14 additions and 3 deletions

View File

@@ -34,6 +34,11 @@ jobs:
&& 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
run: echo "COMMIT_MSG=$(git log -1 --pretty=%B)" >> "$GITHUB_ENV" && echo "COMMIT MESSAGE IS `$COMMIT_MSG`"
- name: Retrieve commit message
run: echo "${{ env.COMMIT_MESSAGE }}"
# Create a release for this specific version
- name: Update Release with Files
@@ -43,4 +48,4 @@ jobs:
files: |-
./dist/module.json
./dist/module.zip
body: ${{ github.event.head_commit.message }}
body: ${{ env.COMMIT_MESSAGE }}

10
.vscode/tasks.json vendored
View File

@@ -4,10 +4,16 @@
"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":[]
"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": []
}
]
}