Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build_and_test_develop_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_HUB_ORG: ghcr.io/${{ github.repository_owner }}

- name: Upload osctrl-mcp snapshot binaries
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: osctrl-mcp-${{ github.sha }}
path: dist/osctrl-mcp-*
if-no-files-found: error
retention-days: 10
8 changes: 8 additions & 0 deletions .github/workflows/build_and_test_main_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_HUB_ORG: ghcr.io/${{ github.repository_owner }}

- name: Upload osctrl-mcp snapshot binaries
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: osctrl-mcp-${{ github.sha }}
path: dist/osctrl-mcp-*
if-no-files-found: error
retention-days: 10
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ builds:
- -X main.buildCommit={{.Commit}}
- -X main.buildDate={{.Date}}

- id: osctrl-mcp
main: ./cmd/mcp
binary: "osctrl-mcp-{{ .Os }}-{{ .Arch }}"
no_unique_dist_dir: true
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.buildVersion={{.Version}}
- -X main.buildCommit={{.Commit}}
- -X main.buildDate={{.Date}}

archives:
- id: osctrl
allow_different_binary_count: true
Expand All @@ -87,6 +106,18 @@ archives:
- README.md
- LICENSE

- id: osctrl-mcp
ids:
- osctrl-mcp
formats:
- binary
name_template: >-
osctrl-mcp-
{{- .Version }}-
{{- title .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}

checksum:
name_template: "checksums.txt"

Expand Down
Loading