Compare commits
8 Commits
v20250207.
...
20250207.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
b8ac60b8a2
|
|||
|
a6278772fc
|
|||
|
64a96747be
|
|||
|
23a208387c
|
|||
|
004c5dbae7
|
|||
|
4cf7b9b0ed
|
|||
|
d89e549a2a
|
|||
|
51acb3f348
|
@@ -28,22 +28,24 @@ 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
|
||||
|
||||
- env:
|
||||
ZIP_FILE_NAME: "module.zip"
|
||||
DIST_BRANCH_NAME: "main"
|
||||
run: echo zip filename "${ZIP_FILENAME}" dist_branch "${DIST_BRANCH_NAME}"
|
||||
|
||||
# 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_FILE_NAME: "module.zip"
|
||||
DIST_BRANCH_NAME: "main"
|
||||
run: mkdir -p dist && git archive --format zip --output dist/${ZIP_FILENAME} ${DIST_BRANCH_NAME}: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.15
|
||||
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
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.env
|
||||
.secrets
|
||||
.github/
|
||||
13
.vscode/tasks.json
vendored
Normal file
13
.vscode/tasks.json
vendored
Normal 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":[]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user