3 Commits

Author SHA1 Message Date
c4817357cf add renovate
Some checks failed
CI / lint (push) Failing after 47s
CI / lint (pull_request) Failing after 54s
2025-10-13 20:36:30 +02:00
daf752884e add simple cicd 2025-10-13 20:35:36 +02:00
ff302530f8 feat: add release-git-tag 2025-10-13 20:35:18 +02:00
6 changed files with 75 additions and 1 deletions

25
.gitea/workflows/cd.yaml Normal file
View File

@@ -0,0 +1,25 @@
name: CD
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- run: npm ci
- name: Increment tag
id: tag
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.2
with:
token: ${{ secrets.GITEA_TOKEN }}
- name: Push tag
run: |
git tag ${{ steps.tag.outputs.new-tag }}
git push origin ${{ steps.tag.outputs.new-tag }}

14
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,14 @@
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: 1.25.1
- run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
- run: actionlint

View File

@@ -1,3 +1,7 @@
# actions
Collection of Gitea friendly actions & workflows
Collection of Gitea friendly actions.
## Actions
- [release-git-tag](./release-git-tag//README.md)

View File

@@ -0,0 +1,9 @@
# release-git-tag
Creates and pushes a Git tag to the remote repository.
```yaml
- uses: ./release-git-tag
with:
tag: v1.0.0
```

View File

@@ -0,0 +1,15 @@
name: Release Git tag
description: Releases a Git to origin
inputs:
tag:
description: The tag to release
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
git tag ${{ inputs.tag }}
git push origin ${{ inputs.tag }}

7
renovate.json Normal file
View File

@@ -0,0 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>t.behrendt/renovate-configs:common",
"local>t.behrendt/renovate-configs:action"
]
}