From a459994a24beb4240d38c83c168cc75fa6908a18 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Tue, 20 May 2025 20:34:21 +0200 Subject: [PATCH] ci: add release pipeline (#16) Reviewed-on: https://gitea.t000-n.de/t.behrendt/tracebasedlogsampler/pulls/16 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 31 +++++++++++++++++++++++++++++++ .gitea/workflows/ci.yaml | 1 + 2 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/cd.yaml diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml new file mode 100644 index 0000000..23ac210 --- /dev/null +++ b/.gitea/workflows/cd.yaml @@ -0,0 +1,31 @@ +name: CI & Release + +on: + push: + branches: + - main + +jobs: + ci: + uses: ./.gitea/workflows/ci.yaml + + release: + needs: ci + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: npm install -g standard-version + - run: | + git config --global user.name "Release Bot" + git config --global user.email "release-bot@t00n.de" + - run: | + standard-version --no-verify --skip-changelog + tag=$(git describe --tags --abbrev=0) + git push origin "$tag" + env: + GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 583ec19..eeffe47 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -4,6 +4,7 @@ on: push: branches-ignore: - main + workflow_call: jobs: test: