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
11 changes: 10 additions & 1 deletion .github/release-please/release-please-config.main.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
"lib/identifier": {
"component": "lib/identifier"
},
"otdfctl": {
"component": "otdfctl",
"extra-files": [
{
"type": "generic",
"path": "pkg/config/config.go"
}
]
},
"protocol/go": {
"component": "protocol/go"
},
Expand All @@ -41,4 +50,4 @@
]
}
}
}
}
20 changes: 20 additions & 0 deletions .github/release-please/release-please-config.otdfctl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "go",
"versioning": "always-bump-patch",
Comment thread
dmihalcik-virtru marked this conversation as resolved.
"separate-pull-requests": true,
"include-component-in-tag": true,
"pull-request-title-pattern": "chore(release): release ${component} ${version}",
"tag-separator": "/",
"packages": {
"otdfctl": {
"component": "otdfctl",
"extra-files": [
{
"type": "generic",
"path": "pkg/config/config.go"
}
]
}
}
}
1 change: 1 addition & 0 deletions .github/release-please/release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"lib/ocrypto": "0.10.0",
"lib/flattening": "0.1.3",
"lib/identifier": "0.3.0",
"otdfctl": "0.30.0",
"protocol/go": "0.23.0",
"sdk": "0.15.0",
"service": "0.13.0"
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/release-otdfctl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Build otdfctl CLI Binaries"

on:
release:
types: [published]

permissions: {}

jobs:
build:
if: ${{ startsWith(github.event.release.tag_name, 'otdfctl/') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version-file: otdfctl/go.mod

- name: Extract version from tag
id: version
run: |
TAG="${{ github.event.release.tag_name }}"
VERSION="${TAG#otdfctl/v}"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"

- name: Build cross-platform binaries
working-directory: otdfctl
env:
SEM_VER: ${{ steps.version.outputs.version }}
COMMIT_SHA: ${{ github.sha }}
run: make build

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we need to build everything?

@alkalescent alkalescent Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working-directory: otdfctl
There are two Makefiles: the platform one at the root which will build everything and an otdfctl scoped one from the original repo which will build cross-platform otdfctl.


- name: Upload release artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload "${{ github.event.release.tag_name }}" ./otdfctl/output/*
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# make
# To run all lint checks: `LINT_OPTIONS= make lint`

.PHONY: all build clean connect-wrapper-generate docker-build fix fmt go-lint license lint proto-generate proto-helper-generate proto-lint sdk/sdk otdfctl/otdfctl test tidy toolcheck
.PHONY: all build clean connect-wrapper-generate docker-build fix fmt go-lint license lint otdfctl/otdfctl proto-generate proto-helper-generate proto-lint sdk/sdk test tidy toolcheck

MODS=protocol/go lib/ocrypto lib/fixtures lib/flattening lib/identifier sdk service examples otdfctl
HAND_MODS=lib/ocrypto lib/fixtures lib/flattening lib/identifier sdk service examples otdfctl
Expand Down
Loading