From daf752884ee8ae0b926f918d00ba214b2b6e47b8 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 13 Oct 2025 20:35:36 +0200 Subject: [PATCH] add simple cicd --- .gitea/workflows/cd.yaml | 25 +++++++++++++++++++++++++ .gitea/workflows/ci.yaml | 14 ++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .gitea/workflows/cd.yaml create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml new file mode 100644 index 0000000..65ca5bc --- /dev/null +++ b/.gitea/workflows/cd.yaml @@ -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 }} diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..db40257 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -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