Compare commits
18 Commits
v20250207.
...
20260109.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
4b549c0bae
|
|||
|
1f7a934b3f
|
|||
|
5de544c91e
|
|||
|
c0aa042292
|
|||
|
b528aefdd5
|
|||
|
baffa8f2bc
|
|||
|
22f6ad45ce
|
|||
|
0d7867a79f
|
|||
|
f9f463848f
|
|||
|
5f1f83c2f1
|
|||
|
462c9f4833
|
|||
|
6259a1c164
|
|||
| d7a3fbfdaa | |||
|
2c12bb4eb3
|
|||
|
20d9dd9a62
|
|||
|
809063f0f6
|
|||
|
dd9f1d8157
|
|||
|
9d87de53f0
|
@@ -29,23 +29,37 @@ jobs:
|
||||
|
||||
# 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
|
||||
working-directory: ./src
|
||||
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.\"
|
||||
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
|
||||
- name: Setting commit message variable
|
||||
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
|
||||
# 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 }}
|
||||
run: |
|
||||
if [ -z "$TOKEN" ]; then
|
||||
echo "github.token secret is missing in this run context."
|
||||
exit 1
|
||||
fi
|
||||
echo "github.token present. ${TOKEN}"
|
||||
# Create a release for this specific version
|
||||
- name: Update Release with Files
|
||||
id: create_version_release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
uses: actions/gitea-release-action
|
||||
with:
|
||||
files: |-
|
||||
./dist/module.json
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.env
|
||||
.secrets
|
||||
.github/
|
||||
.github/
|
||||
*.sh
|
||||
Reference in New Issue
Block a user