Update release workflow and tasks
Some checks failed
Release Creation / build (release) Failing after 24s
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:
@@ -35,8 +35,8 @@ jobs:
|
|||||||
&& cp src/module.json dist/
|
&& cp src/module.json dist/
|
||||||
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
|
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
|
||||||
|
|
||||||
- name: Echo commit message
|
- name: Setting commit message
|
||||||
run: echo "`${{ github.event.head_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
|
# Create a release for this specific version
|
||||||
- name: Update Release with Files
|
- name: Update Release with Files
|
||||||
@@ -46,4 +46,4 @@ jobs:
|
|||||||
files: |-
|
files: |-
|
||||||
./dist/module.json
|
./dist/module.json
|
||||||
./dist/module.zip
|
./dist/module.zip
|
||||||
body: ${{ github.event.head_commit.message }}
|
body: $COMMIT_MSG
|
||||||
7
.vscode/tasks.json
vendored
7
.vscode/tasks.json
vendored
@@ -4,10 +4,15 @@
|
|||||||
"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\""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user