From 372fd8fdc5a2624ed7f7bbd52730354aaac3614b Mon Sep 17 00:00:00 2001 From: logikonline Date: Sat, 10 Jan 2026 05:00:06 -0500 Subject: [PATCH] Add CI/CD workflows for build and release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add CI workflow for build/test on push and PR - Add release workflow to create releases on tags 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/ci.yml | 27 +++++++++++++++++++++++++++ .gitea/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .gitea/workflows/ci.yml create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..9d41adb --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.21' + + - name: Build + run: go build ./... + env: + GOPRIVATE: git.marketally.com + + - name: Test + run: go test ./... + env: + GOPRIVATE: git.marketally.com diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..1618731 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.21' + + - name: Build + run: go build ./... + env: + GOPRIVATE: git.marketally.com + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}