From 65f157b0c2200f779375392153b64627f977ab59 Mon Sep 17 00:00:00 2001 From: Andriy Oblivantsev Date: Wed, 24 Jun 2026 14:50:04 +0100 Subject: [PATCH] ci: fix release-please permissions and document release workflow Enable workflow_dispatch, add issues:write, and document the repo Actions setting required for release-please PRs. Co-authored-by: Cursor --- .github/workflows/release-please.yml | 2 ++ README.md | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 031dc06..1b704bd 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -3,10 +3,12 @@ name: Release Please on: push: branches: [main] + workflow_dispatch: permissions: contents: write pull-requests: write + issues: write jobs: release-please: diff --git a/README.md b/README.md index 9f6795c..9c5954e 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Go Reference](https://pkg.go.dev/badge/github.com/eslider/go-onlyoffice.svg)](https://pkg.go.dev/github.com/eslider/go-onlyoffice) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Go](https://img.shields.io/badge/Go-1.22+-00ADD8.svg)](https://go.dev) +[![Tests](https://github.com/eSlider/go-onlyoffice/actions/workflows/test.yml/badge.svg)](https://github.com/eSlider/go-onlyoffice/actions/workflows/test.yml) [![Latest Release](https://img.shields.io/github/v/tag/eSlider/go-onlyoffice?sort=semver&label=release)](https://github.com/eSlider/go-onlyoffice/releases) [![GitHub Stars](https://img.shields.io/github/stars/eSlider/go-onlyoffice?style=social)](https://github.com/eSlider/go-onlyoffice/stargazers) @@ -631,6 +632,20 @@ oo mails delete 5664 Folder names: `inbox`, `sent`, `drafts`, `trash`, `spam` (or numeric id). +### CI / releases + +GitHub Actions (pattern from [`eSlider/go-config`](https://github.com/eSlider/go-config)): + +| Workflow | Trigger | Purpose | +|---|---|---| +| `test.yml` | push / PR | `go vet`, unit tests, build `oo` | +| `release-please.yml` | push to `main` | semver PR from conventional commits | +| `release.yml` | tag `v*` | GoReleaser cross-platform `oo` binaries | + +Repo setting required once: **Settings → Actions → General → Allow GitHub Actions to create and approve pull requests**. + +Merge the release-please PR to tag a version; GoReleaser publishes assets to [GitHub Releases](https://github.com/eSlider/go-onlyoffice/releases). + ## Examples | Example | Description |