Compare commits

..

66 Commits

Author SHA1 Message Date
31a98d06e5 20260109.121923
All checks were successful
Release Creation / build (release) Successful in 15s
2026-01-09 12:19:23 -06:00
e94519e727 20260109.114619
Some checks failed
Release Creation / build (release) Failing after 32s
2026-01-09 11:46:19 -06:00
427f4753b0 20260109.114157
Some checks failed
Release Creation / build (release) Failing after 33s
2026-01-09 11:41:57 -06:00
5eef67400d 20260109.114027
Some checks failed
Release Creation / build (release) Failing after 37s
2026-01-09 11:40:28 -06:00
994b7404e5 20260109.113423
Some checks failed
Release Creation / build (release) Failing after 43s
2026-01-09 11:34:23 -06:00
96b5acbf52 20260109.112343
Some checks failed
Release Creation / build (release) Failing after 38s
2026-01-09 11:23:43 -06:00
fa12789004 20260109.110722
Some checks failed
Release Creation / build (release) Failing after 5s
2026-01-09 11:07:22 -06:00
5cd98e8e18 20260109.110652
Some checks failed
Release Creation / build (release) Failing after 2s
2026-01-09 11:06:52 -06:00
d47206d2d2 20260109.110605
Some checks failed
Release Creation / build (release) Failing after 2s
2026-01-09 11:06:05 -06:00
bc48a25910 20260109.110526
Some checks failed
Release Creation / build (release) Failing after 3s
2026-01-09 11:05:26 -06:00
a5df1df045 20260109.110501
Some checks failed
Release Creation / build (release) Failing after 3s
2026-01-09 11:05:01 -06:00
85527c5ed8 20260109.110351
Some checks failed
Release Creation / build (release) Failing after 2s
2026-01-09 11:03:51 -06:00
6607b9965e 20260109.110322
Some checks failed
Release Creation / build (release) Failing after 2s
2026-01-09 11:03:22 -06:00
4b549c0bae 20260109.110220
Some checks failed
Release Creation / build (release) Failing after 3s
2026-01-09 11:02:20 -06:00
1f7a934b3f 20260109.110049
Some checks failed
Release Creation / build (release) Failing after 6s
2026-01-09 11:00:49 -06:00
5de544c91e 20260109.105920
Some checks failed
Release Creation / build (release) Failing after 5s
2026-01-09 10:59:20 -06:00
c0aa042292 20260109.105801
Some checks failed
Release Creation / build (push) Failing after 5s
2026-01-09 10:58:01 -06:00
b528aefdd5 20260109.105627 2026-01-09 10:56:27 -06:00
baffa8f2bc 20260109.105523 2026-01-09 10:55:23 -06:00
22f6ad45ce 20260109.105452 2026-01-09 10:54:52 -06:00
0d7867a79f 20260109.105420 2026-01-09 10:54:20 -06:00
f9f463848f 20260109.105334 2026-01-09 10:53:34 -06:00
5f1f83c2f1 20260109.105006 2026-01-09 10:50:06 -06:00
462c9f4833 20260109.104742
Some checks failed
Release Creation / build (release) Failing after 5s
2026-01-09 10:47:42 -06:00
6259a1c164 20260109.103642
Some checks failed
Release Creation / build (release) Failing after 6s
2026-01-09 10:36:42 -06:00
d7a3fbfdaa testing gitea_token in update release
Some checks failed
Release Creation / build (release) Failing after 5s
2026-01-09 16:26:50 +00:00
2c12bb4eb3 20250207.110507
Some checks failed
Release Creation / build (release) Failing after 10s
2025-02-07 11:05:07 -06:00
20d9dd9a62 20250207.110331
Some checks failed
Release Creation / build (release) Failing after 20s
2025-02-07 11:03:31 -06:00
809063f0f6 20250207.105633
All checks were successful
Release Creation / build (release) Successful in 23s
2025-02-07 10:56:33 -06:00
dd9f1d8157 Update release workflow to improve readability
All checks were successful
Release Creation / build (release) Successful in 33s
- Simplified workflow by removing redundant steps and streamlining the process.
- Enhanced output by adding a commit message step to provide better context for future reference.
- Improved code readability and maintainability by removing unnecessary steps and focusing on essential actions.
2025-02-07 10:26:53 -06:00
9d87de53f0 Update release workflow with commit message variable
All checks were successful
Release Creation / build (release) Successful in 35s
- Added a new step to the release workflow that sets a commit message variable.
- This step ensures that the commit message is captured and stored for future reference.
- The commit message is retrieved using the `steps.commit-message.outputs.COMMIT_MESSAGE` variable.

Update release workflow to use commit message variable

- Updated the release workflow to use the commit message variable.
- This change ensures that the commit message is used when creating a release.
- The commit message is now stored in the `$GITHUB_OUTPUT` file and can be accessed by other steps in the workflow.
2025-02-07 10:22:42 -06:00
4f0513c72c Update commit message formatting
Some checks failed
Release Creation / build (release) Failing after 26s
- Replace newline characters with line breaks in commit message body.
- Enhance readability by using a single line break between each line of the commit message.
2025-02-07 10:05:37 -06:00
5e064a8dfb 20250207.100205
All checks were successful
Release Creation / build (release) Successful in 27s
2025-02-07 10:02:05 -06:00
d0101c9666 Update workflow to use environment variables
Some checks failed
Release Creation / build (release) Failing after 23s
- The workflow has been updated to use environment variables instead of hardcoded values.
- This change improves the flexibility and maintainability of the workflow.
- The changes include using `$GITHUB_OUTPUT` to store the commit message and `$COMMIT_MESSAGE` to retrieve it.
2025-02-07 09:55:18 -06:00
fc88596821 20250207.095231
All checks were successful
Release Creation / build (release) Successful in 26s
2025-02-07 09:52:31 -06:00
859339b403 20250207.094650
All checks were successful
Release Creation / build (release) Successful in 24s
2025-02-07 09:46:50 -06:00
2dd53178cf Update release workflow and tasks
Some checks failed
Release Creation / build (release) Failing after 24s
- Updated the release workflow to use a more efficient method for setting the commit message.
- Added a new task to the VSCode tasks.json file to create a new release with a dynamic tag based on the current date and
time.

These changes improve the efficiency and automation of the release process, ensuring that releases are created with accurate
and up-to-date information.
2025-02-07 09:43:21 -06:00
d4b5c3fe66 20250207.092640
All checks were successful
Release Creation / build (release) Successful in 24s
2025-02-07 09:26:40 -06:00
6ac5ceb26a 20250207.092516
All checks were successful
Release Creation / build (release) Successful in 30s
2025-02-07 09:25:16 -06:00
a4a5a97fd6 20250207.091515
All checks were successful
Release Creation / build (release) Successful in 27s
2025-02-07 09:15:15 -06:00
bd30095e45 20250207.091003
All checks were successful
Release Creation / build (release) Successful in 28s
2025-02-07 09:10:03 -06:00
592889ea4c 20250207.085641
All checks were successful
Release Creation / build (release) Successful in 25s
2025-02-07 08:56:41 -06:00
3a1443c153 20250207.084320
Some checks failed
Release Creation / build (release) Failing after 21s
2025-02-07 08:43:20 -06:00
1142817d41 20250207.084053
Some checks failed
Release Creation / build (release) Failing after 23s
2025-02-07 08:40:53 -06:00
89f0b930f5 20250207.083655
Some checks failed
Release Creation / build (release) Failing after 22s
2025-02-07 08:36:55 -06:00
4e9bc012f9 20250207.083235
Some checks failed
Release Creation / build (release) Failing after 23s
2025-02-07 08:32:35 -06:00
187839be20 20250207.083131
Some checks failed
Release Creation / build (release) Failing after 25s
2025-02-07 08:31:31 -06:00
b8ac60b8a2 20250207.082811
Some checks failed
Release Creation / build (release) Failing after 22s
2025-02-07 08:28:11 -06:00
a6278772fc 20250207.082305
Some checks failed
Release Creation / build (release) Failing after 20s
2025-02-07 08:23:05 -06:00
64a96747be 20250207.081601
All checks were successful
Release Creation / build (release) Successful in 29s
2025-02-07 08:16:01 -06:00
23a208387c 20250207.080819
All checks were successful
Release Creation / build (release) Successful in 32s
2025-02-07 08:08:19 -06:00
004c5dbae7 20250207.080732
All checks were successful
Release Creation / build (release) Successful in 34s
2025-02-07 08:07:32 -06:00
4cf7b9b0ed 20250207.080423
All checks were successful
Release Creation / build (release) Successful in 27s
2025-02-07 08:04:23 -06:00
d89e549a2a 20250207.080312
Some checks failed
Release Creation / build (release) Failing after 12s
2025-02-07 08:03:12 -06:00
51acb3f348 20250207.075205
All checks were successful
Release Creation / build (release) Successful in 28s
2025-02-07 07:52:05 -06:00
328fcea7f6 20250207.075000
Some checks failed
Release Creation / build (release) Failing after 16s
2025-02-07 07:50:00 -06:00
00fd997d75 20250207.074656
All checks were successful
Release Creation / build (release) Successful in 24s
2025-02-07 07:46:56 -06:00
d68a7ca49d Fri Feb 7 07:36:41 CST 2025
All checks were successful
Release Creation / build (release) Successful in 40s
2025-02-07 07:36:41 -06:00
78e593fbca Thu Feb 6 18:59:00 CST 2025
All checks were successful
Release Creation / build (release) Successful in 27s
2025-02-06 18:59:00 -06:00
7a30f53dce Add zip creation and file listing to release workflow
- Updated main.yml workflow to include zip creation and file listing steps.
- Zip creation now includes only the module.json and src folders.
- Added a step to list the files in the zip for transparency.
2025-02-06 18:54:40 -06:00
f1a1a22939 Thu Feb 6 18:46:57 CST 2025
All checks were successful
Release Creation / build (release) Successful in 29s
2025-02-06 18:46:57 -06:00
ee9a873440 Wed Feb 5 16:02:29 CST 2025
All checks were successful
Release Creation / build (release) Successful in 34s
2025-02-05 16:02:29 -06:00
7ed54aa297 Wed Feb 5 15:59:55 CST 2025
All checks were successful
Release Creation / build (release) Successful in 27s
2025-02-05 15:59:55 -06:00
0e9d62ccd0 Wed Feb 5 15:55:06 CST 2025
All checks were successful
Release Creation / build (release) Successful in 24s
2025-02-05 15:55:06 -06:00
cc03fe3fe1 Wed Feb 5 15:49:16 CST 2025
Some checks failed
Release Creation / build (release) Has been cancelled
2025-02-05 15:49:16 -06:00
338229b79d Wed Feb 5 03:43:48 PM CST 2025
Some checks failed
Release Creation / build (release) Failing after 18s
2025-02-05 15:44:13 -06:00
10 changed files with 72 additions and 39 deletions

1
.env Normal file
View File

@@ -0,0 +1 @@
TEST=123

View File

@@ -1,19 +0,0 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

View File

@@ -14,33 +14,56 @@ jobs:
- name: Extract tag version number
id: get_version
uses: battila7/get-version-action@v2
- run: echo ${{ steps.get_version.outputs.version-without-v }}
# Substitute the Manifest and Download URLs in the module.json
- name: Substitute Manifest and Download Links For Versioned Ones
id: sub_manifest_link_version
uses: microsoft/variable-substitution@v1
with:
files: 'module.json'
files: 'src/module.json'
env:
version: ${{steps.get_version.outputs.version-without-v}}
url: https://github.com/${{github.repository}}
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip
url: https://gitea.ascorrea.com/${{github.repository}}
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
# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip demo.md
- 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: ncipollo/release-action@v1
uses: https://gitea.com/actions/gitea-release-action@v1.3.5
with:
allowUpdates: true # Set this to false if you want to prevent updating existing releases
name: ${{ github.event.release.name }}
draft: ${{ github.event.release.unpublished }}
prerelease: ${{ github.event.release.prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
files: |-
./dist/module.json
./dist/module.zip
body: |-
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
.env
.secrets
.github/
*.sh

0
.secrets Normal file
View File

19
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// 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 push origin main && tea release create --title \"$TAG\" --tag=\"v$TAG\"",
"problemMatcher": []
}
]
}

1
README.md Normal file
View File

@@ -0,0 +1 @@
Tag: 20260109.121923

View File

@@ -1,3 +0,0 @@
{
"name": "new-demo"
}

0
src/main.js Normal file
View File

7
src/module.json Normal file
View File

@@ -0,0 +1,7 @@
{
"name": "gitea-actions-demo",
"download": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/v/module.zip",
"manifest": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/latest/module.json",
"version":"",
"url":""
}