add simple cicd

This commit is contained in:
2025-10-13 20:35:36 +02:00
parent ff302530f8
commit daf752884e
2 changed files with 39 additions and 0 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