ci: add release pipeline (#11)
Some checks failed
CI & Release / tests (push) Successful in 3m37s
CI & Release / release (push) Failing after 3m12s

Reviewed-on: #11
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #11.
This commit is contained in:
2025-05-19 21:54:14 +02:00
committed by t.behrendt
parent ce7d18e880
commit b750f6b650

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

@@ -0,0 +1,43 @@
name: CI & Release
on:
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test ./...
release:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: |
git config --global user.name "Gitea Actions"
git config --global user.email "gitea-actions@t00n.de"
- name: Release
run: |
npx standard-version --no-verify --skip-git --skip-changelog
git push --follow-tags origin HEAD