Skip to content

Commit 67eb8f0

Browse files
committed
ci: sync with netresearch/.github templates/go-app
Auto-generated by scripts/sync-template.sh. Any changes you want to keep must be declared in .github/template.yaml's intentional-drift: list — the check-template-drift.yml job will otherwise revert them on next sync. Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
1 parent 4ccd0f1 commit 67eb8f0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ jobs:
6262
attestations: write
6363
with:
6464
binary-name: ${{ github.event.repository.name }}-${{ matrix.target }}
65-
# Fleet convention: main package lives at `./main.go` (repo root) OR
66-
# `./cmd/<repo-name>/main.go`. Any other layout is non-conforming.
67-
main-package: ${{ hashFiles(format('cmd/{0}/main.go', github.event.repository.name)) != '' && format('./cmd/{0}', github.event.repository.name) || '.' }}
65+
# Resolve after checkout (see build-go-attest.yml). `auto` picks
66+
# `.` when ./main.go exists, else `./cmd/<repo-name>` when that
67+
# main.go exists, else fails. Keeps this template file byte-
68+
# identical regardless of whether the consumer uses a root-main
69+
# or cmd/ layout.
70+
main-package: auto
6871
goos: ${{ matrix.goos }}
6972
goarch: ${{ matrix.goarch }}
7073
goarm: ${{ matrix.goarm || '' }}

0 commit comments

Comments
 (0)