Compare commits

...

16 Commits

Author SHA1 Message Date
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
5 changed files with 36 additions and 16 deletions

2
.env
View File

@@ -1 +1 @@
TEST=123
TEST=123

View File

@@ -21,29 +21,31 @@ jobs:
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://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
- 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
- run: zip -r ./module.zip module.json src
- run: echo "Files- $(ls -la ${{ github.workspace }})"
- run: echo "secret- `${{ secrets.TEST }}`"
- 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)
# Create a release for this specific version
- name: Update Release with Files
id: create_version_release
uses: ncipollo/release-action@v1
uses: akkuman/gitea-release-action@v1
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: '${{ github.workspace }}/module.json, ${{ github.workspace }}/module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
title: ${{ github.event.release.tag_name }}
files: |-
./dist/module.json
./dist/module.zip

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.env
.secrets
.github/

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

@@ -0,0 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"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":[]
}
]
}

View File

@@ -1,5 +1,7 @@
{
"name": "gitea-actions-demo",
"download": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/v0.2.1/module.zip",
"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":""
}