4 Commits

Author SHA1 Message Date
Alexander
29c564380d feat(infra): Adds pre-comit setup and conventional commit message enforment
All checks were successful
On-Site VTT - Develop / build (push) Successful in 2m50s
Adds git-hooks for pre-commit package and configuration for repository checks and commit messages
2023-12-11 21:46:45 +01:00
Alexander
a8d01fd9bf Update pipelines
All checks were successful
On-Site VTT - Develop / build (push) Successful in 3m19s
2023-12-11 13:52:23 +01:00
Alexander
402c6da5df Preparation for main-pipeline 2023-12-11 13:47:49 +01:00
Alexander
f9fefaf404 Fixes locations of files in module 2023-12-11 13:22:56 +01:00
11 changed files with 50 additions and 21 deletions

View File

@@ -42,7 +42,9 @@ jobs:
title: dev-${{ steps.date.outputs.date }}
tag_name: dev-${{ steps.date.outputs.date }}
files: |-
"LICENSE.txt"
"README.md"
"on-site-vtt/module.json"
on-site-vtt.zip
"on-site-vtt.zip"
pre_release: true
api_key: "${{secrets.RELEASE_TOKEN}}"

View File

@@ -5,8 +5,6 @@ on:
push:
branches:
- main
tags:
- "*"
jobs:
build:
@@ -31,11 +29,19 @@ jobs:
find: "{{branch}}"
replace: ${{ github.ref }}
include: "on-site-vtt/module.json"
- name: Pack and release
uses: actions/release-action@main
- name: Pack archive
uses: montudor/action-zip@v1
with:
title: ${{ github.ref_name }}
pre_release: false
api_key: "${{secrets.RELEASE_TOKEN}}"
args: zip -r on-site-vtt.zip on-site-vtt
- name: publish release
uses: https://gitea.aweleczka.de/actions/release-action@main
with:
title: dev-${{ steps.date.outputs.date }}
tag_name: dev-${{ steps.date.outputs.date }}
files: |-
on-site-vtt/**
"LICENSE.txt"
"README.md"
"on-site-vtt/module.json"
"on-site-vtt.zip"
pre_release: true
api_key: "${{secrets.RELEASE_TOKEN}}"

21
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,21 @@
## See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-byte-order-marker
- id: end-of-file-fixer
- id: mixed-line-ending
- id: detect-private-key
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, chore, test]

View File

@@ -26,11 +26,11 @@
}
],
"url": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT",
"manifest": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/{{branch}}/on-site-vtt/module.json",
"download": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/on-site-vtt.zip",
"bugs": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/issues",
"readme": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/{{branch}}/README.md",
"license": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/raw/branch/{{branch}}/LICENSE.txt",
"manifest": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/module.json",
"download": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/on-site-vtt.zip",
"readme": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/README.md",
"license": "https://gitea.aweleczka.de/aweleczka/On-Site-VTT/releases/download/{{version}}/LICENSE.txt",
"flags": {
"allowBugReporter": true
},