Compare commits
33 Commits
20250207.0
...
20260109.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
5cd98e8e18
|
|||
|
d47206d2d2
|
|||
|
bc48a25910
|
|||
|
a5df1df045
|
|||
|
85527c5ed8
|
|||
|
6607b9965e
|
|||
|
4b549c0bae
|
|||
|
1f7a934b3f
|
|||
|
5de544c91e
|
|||
|
c0aa042292
|
|||
|
b528aefdd5
|
|||
|
baffa8f2bc
|
|||
|
22f6ad45ce
|
|||
|
0d7867a79f
|
|||
|
f9f463848f
|
|||
|
5f1f83c2f1
|
|||
|
462c9f4833
|
|||
|
6259a1c164
|
|||
| d7a3fbfdaa | |||
|
2c12bb4eb3
|
|||
|
20d9dd9a62
|
|||
|
809063f0f6
|
|||
|
dd9f1d8157
|
|||
|
9d87de53f0
|
|||
|
4f0513c72c
|
|||
|
5e064a8dfb
|
|||
|
d0101c9666
|
|||
|
fc88596821
|
|||
|
859339b403
|
|||
|
2dd53178cf
|
|||
|
d4b5c3fe66
|
|||
|
6ac5ceb26a
|
|||
|
a4a5a97fd6
|
@@ -14,8 +14,7 @@ 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
|
||||
id: sub_manifest_link_version
|
||||
@@ -28,24 +27,43 @@ 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.\"
|
||||
|
||||
- run: echo $(ls -lah)
|
||||
|
||||
- name: Create files (module.zip, module.json) for release
|
||||
working-directory: ./src
|
||||
run: >
|
||||
mkdir -p ../dist
|
||||
&& zip -r ../dist/module.zip .
|
||||
&& cp module.json ../dist/
|
||||
&& echo \"Done!\nZipped module.json and copied module.js.\"
|
||||
|
||||
- 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: Verify GITEA_TOKEN is present
|
||||
shell: bash
|
||||
env:
|
||||
TOKEN: ${{ github.token }}
|
||||
URL: ${{ github.server_url }}
|
||||
run: |
|
||||
if [ -z "$TOKEN" ]; then
|
||||
echo "github.token secret is missing in this run context."
|
||||
exit 1
|
||||
fi
|
||||
echo "github.token present. ${TOKEN} for ${URL}"
|
||||
# Create a release for this specific version
|
||||
- name: Update Release with Files
|
||||
id: create_version_release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
uses: gitea.com/actions/gitea-release-action@v1.3.5
|
||||
with:
|
||||
files: |-
|
||||
./dist/module.json
|
||||
./dist/module.zip
|
||||
./dist/module.zip
|
||||
body: |-
|
||||
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.env
|
||||
.secrets
|
||||
.github/
|
||||
.github/
|
||||
*.sh
|
||||
10
.vscode/tasks.json
vendored
10
.vscode/tasks.json
vendored
@@ -3,11 +3,17 @@
|
||||
// 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\"",
|
||||
"problemMatcher":[]
|
||||
"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