Skip to content

Commit fe9ef0f

Browse files
authored
fix: consolidate release workflow (#25)
* fix: consolidate release workflow and remove draft mode Combine release-please and goreleaser into a single workflow with job dependencies. Add workflow_dispatch for manual re-runs. Remove draft mode since the combined workflow handles timing. Add extra-files for README version bumps. * fix: rename goreleaser job to binaries
1 parent 6097dd6 commit fe9ef0f

4 files changed

Lines changed: 33 additions & 29 deletions

File tree

.github/workflows/goreleaser.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,46 @@
1-
name: release-please
1+
name: release
22

33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "Release tag to build (e.g. v0.1.0)"
10+
required: true
611

712
permissions:
813
contents: write
914
pull-requests: write
1015

1116
jobs:
1217
release-please:
18+
if: github.event_name == 'push'
1319
runs-on: ubuntu-latest
20+
outputs:
21+
release_created: ${{ steps.rp.outputs.release_created }}
22+
tag_name: ${{ steps.rp.outputs.tag_name }}
1423
steps:
1524
- uses: googleapis/release-please-action@v4
25+
id: rp
1626
with:
1727
token: ${{ secrets.GITHUB_TOKEN }}
28+
29+
binaries:
30+
needs: release-please
31+
if: needs.release-please.outputs.release_created == 'true' || github.event_name == 'workflow_dispatch'
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
ref: ${{ inputs.tag || needs.release-please.outputs.tag_name }}
38+
- uses: actions/setup-go@v5
39+
with:
40+
go-version: "1.25"
41+
- uses: goreleaser/goreleaser-action@v6
42+
with:
43+
version: "~> v2"
44+
args: release --clean
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version: 2
2+
project_name: skillful-mcp
23

34
builds:
45
- main: .
@@ -23,7 +24,6 @@ checksum:
2324
name_template: checksums.txt
2425

2526
release:
26-
use_existing_draft: true
2727
mode: keep-existing
2828

2929
changelog:

release-please-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
".": {
44
"release-type": "simple",
55
"bump-minor-pre-major": true,
6-
"draft": true,
76
"force-tag-creation": true,
8-
"version-file": "internal/version/version.txt"
7+
"version-file": "internal/version/version.txt",
8+
"extra-files": ["README.md"]
99
}
1010
}
1111
}

0 commit comments

Comments
 (0)