Compare commits
8 Commits
v20250207.
...
v20250207.
| Author | SHA1 | Date | |
|---|---|---|---|
|
809063f0f6
|
|||
|
dd9f1d8157
|
|||
|
9d87de53f0
|
|||
|
4f0513c72c
|
|||
|
5e064a8dfb
|
|||
|
d0101c9666
|
|||
|
fc88596821
|
|||
|
859339b403
|
@@ -30,13 +30,21 @@ 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: >
|
run: >
|
||||||
mkdir -p dist
|
mkdir -p ../dist
|
||||||
&& git archive --format zip --output dist/module.zip HEAD:src
|
&& zip -r ../dist/module.zip .
|
||||||
&& cp src/module.json dist/
|
&& cp src/module.json ../dist/
|
||||||
&& echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
|
&& echo \"Done!\nZipped module.json and copied module.js.\"
|
||||||
|
|
||||||
- name: Setting commit message
|
- name: Setting commit message variable
|
||||||
run: echo "COMMIT_MSG=$(git log -1 --pretty=%B)" >> "$GITHUB_ENV" && echo "COMMIT MESSAGE IS `$COMMIT_MSG`"
|
id: commit-message
|
||||||
|
# Per
|
||||||
|
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#example-of-a-multiline-string
|
||||||
|
run: |
|
||||||
|
{
|
||||||
|
echo 'COMMIT_MESSAGE<<EOF'
|
||||||
|
git log -1 --pretty=%B
|
||||||
|
echo EOF
|
||||||
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# 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 +54,5 @@ jobs:
|
|||||||
files: |-
|
files: |-
|
||||||
./dist/module.json
|
./dist/module.json
|
||||||
./dist/module.zip
|
./dist/module.zip
|
||||||
body: $COMMIT_MSG
|
body: |-
|
||||||
|
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||||
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
@@ -12,7 +12,8 @@
|
|||||||
{
|
{
|
||||||
"label": "new release",
|
"label": "new release",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "TAG=$(date +\"%Y%m%d.%H%M%S\"); git push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\""
|
"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