Compare commits
32 Commits
v20250207.
...
20260109.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
427f4753b0
|
|||
|
5eef67400d
|
|||
|
994b7404e5
|
|||
|
96b5acbf52
|
|||
|
fa12789004
|
|||
|
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
|
@@ -29,24 +29,41 @@ 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
|
||||||
|
working-directory: ./src
|
||||||
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 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
|
||||||
id: commit-message
|
id: commit-message
|
||||||
run: COMMIT_MESSAGE=$(git log -1 --pretty=%B); echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> "$GITHUB_OUTPUT" && echo "commit message is '$COMMIT_MESSAGE'"
|
# Per
|
||||||
- name: Retrieve commit message
|
# 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 "${{ steps.commit-message.outputs.COMMIT_MESSAGE }}"
|
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
|
# Create a release for this specific version
|
||||||
- name: Update Release with Files
|
- name: Update Release with Files
|
||||||
id: create_version_release
|
id: create_version_release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1.3.5
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
./dist/module.json
|
./dist/module.json
|
||||||
./dist/module.zip
|
./dist/module.zip
|
||||||
body: ${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
body: |-
|
||||||
|
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
.env
|
.env
|
||||||
.secrets
|
.secrets
|
||||||
.github/
|
.github/
|
||||||
|
*.sh
|
||||||
Reference in New Issue
Block a user