Compare commits
10 Commits
20250207.0
...
v20250207.
| Author | SHA1 | Date | |
|---|---|---|---|
|
9d87de53f0
|
|||
|
4f0513c72c
|
|||
|
5e064a8dfb
|
|||
|
d0101c9666
|
|||
|
fc88596821
|
|||
|
859339b403
|
|||
|
2dd53178cf
|
|||
|
d4b5c3fe66
|
|||
|
6ac5ceb26a
|
|||
|
a4a5a97fd6
|
@@ -14,7 +14,6 @@ jobs:
|
||||
- name: Extract tag version number
|
||||
id: get_version
|
||||
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
|
||||
- name: Substitute Manifest and Download Links For Versioned Ones
|
||||
@@ -28,18 +27,27 @@ jobs:
|
||||
manifest: https://gitea.ascorrea.com/${{github.repository}}/releases/latest/download/module.json
|
||||
download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip
|
||||
|
||||
- run: git reflog
|
||||
env:
|
||||
ZIP_FILENAME: "module.zip"
|
||||
DIST_BRANCH_NAME: "main"
|
||||
|
||||
# Create a zip file with all files required by the module to add to the release
|
||||
- env:
|
||||
ZIP_FILENAME: "module.zip"
|
||||
DIST_BRANCH_NAME: "main"
|
||||
run: mkdir -p dist && git archive --format zip --output dist/${ZIP_FILENAME} HEAD:src && cp src/module.json dist/ && echo \"Done!\nArchived to ${ZIP_FILENAME} and copied module.js.\"
|
||||
- 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: echo $(ls -lah)
|
||||
- name: Setting commit message variable
|
||||
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"
|
||||
|
||||
- name: retreive commit message
|
||||
run: echo "commit message is ${{ steps.commit-message.outputs.COMMIT_MESSAGE }}"
|
||||
|
||||
# Create a release for this specific version
|
||||
- name: Update Release with Files
|
||||
@@ -49,3 +57,5 @@ jobs:
|
||||
files: |-
|
||||
./dist/module.json
|
||||
./dist/module.zip
|
||||
body: |-
|
||||
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||
8
.vscode/tasks.json
vendored
8
.vscode/tasks.json
vendored
@@ -3,10 +3,16 @@
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"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 add . && git commit -m \"$TAG\" && git tag \"v$TAG\" && git push origin main --tags && tea release create --title \"$TAG\" --tag=\"$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