Initial commit: BRAT fork with Gitea support
Tatortreiniger / tatort-reinigen (release) Has been cancelled

This commit is contained in:
2026-05-24 18:35:09 -04:00
parent bd3153fd32
commit 8de00536fa
44 changed files with 5172 additions and 3 deletions
+45
View File
@@ -0,0 +1,45 @@
# Automated release management using release-it and conventional commits. Run this manually to create a (pre-)release or push to the main and beta branch to create a dry-run.
name: Release It
on:
push:
branches:
- beta
workflow_dispatch:
jobs:
pre-release-it:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm install
- name: Build release variant
run: npm run build:${RELEASE_CHANNEL}
env:
RELEASE_CHANNEL: ${{ github.ref_name == 'beta' && 'beta' || 'main' }}
- run: npx -p @release-it/bumper -p @release-it/conventional-changelog release-it --git.requireBranch="main" --ci --dry-run
name: Release (DRY RUN)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -p @release-it/bumper -p @release-it/conventional-changelog release-it --git.requireBranch="main" --ci
name: Release
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -p @release-it/bumper -p @release-it/conventional-changelog release-it --preRelease=beta --ci --dry-run
name: Pre-Release (DRY RUN)
if: github.event_name == 'push' && github.ref == 'refs/heads/beta'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -p @release-it/bumper -p @release-it/conventional-changelog release-it --preRelease=beta --ci
name: Pre-Release
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/beta'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+33
View File
@@ -0,0 +1,33 @@
name: Release Obsidian plugin
on:
push:
tags:
- "!*-*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "21.x"
- name: Build plugin
run: |
npm install
npm run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
build/main.js manifest.json styles.css
+24
View File
@@ -0,0 +1,24 @@
# If you wonder: https://en.wikipedia.org/wiki/Crime_Scene_Cleaner_(TV_series)
name: Tatortreiniger
on:
release:
types: [published, released]
workflow_dispatch:
# This workflow runs when a new release is published.
# It deletes old pre-release versions, keeping maximum 10.
jobs:
tatort-reinigen:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
steps:
- uses: sgpublic/delete-release-action@v1.2
with:
# Keep up to 5 pre-releases (plus the latest)
pre-release-drop: true
pre-release-keep-count: 5
draft-drop: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}