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
45 changes: 41 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,45 @@ jobs:
GOARCH: ${{ matrix.platform.arch }}
run: |
name="${BINARY}_${TAG}_${GOOS}_${GOARCH}"
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=${TAG}" -o "$name" .
tar -czf "${name}.tar.gz" "$name"
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=${TAG}" -o "$BINARY" .
tar -czf "${name}.tar.gz" "$BINARY"
- name: Upload the archive
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ matrix.platform.os }}-${{ matrix.platform.arch }}
name: archive-${{ matrix.platform.os }}-${{ matrix.platform.arch }}
path: ${{ env.BINARY }}_${{ env.TAG }}_${{ matrix.platform.os }}_${{ matrix.platform.arch }}.tar.gz
if-no-files-found: error
publish:
packslip:
needs: build
permissions:
contents: read
id-token: write
attestations: write
runs-on: ubuntu-26.04
timeout-minutes: 10
steps:
- name: Download the archives
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: archive-*
path: dist
merge-multiple: true
- name: Sign the release manifest
id: packslip
uses: jdx/packslip@e0340e0c1d10c90a434de2b90f3a1ba345923564 # v1.11.4
with:
artifacts: dist/*.tar.gz
bin: timber
attest: true
upload: false
- name: Upload the bundle
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: packslip
path: ${{ steps.packslip.outputs.bundle }}
if-no-files-found: error
publish:
needs: [build, packslip]
permissions:
contents: write
runs-on: ubuntu-26.04
Expand All @@ -70,10 +99,16 @@ jobs:
- name: Download the archives
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: archive-*
path: dist
merge-multiple: true
- name: Make the checksums
run: cd dist && sha256sum -- *.tar.gz > checksums.txt
- name: Download the packslip
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: packslip
path: packslip
- name: Read the release state
id: state
run: |
Expand All @@ -88,6 +123,8 @@ jobs:
run: gh release create "$TAG" --verify-tag --draft --generate-notes --title "$TAG"
- name: Upload the assets
run: gh release upload "$TAG" dist/* --clobber
- name: Upload the packslip
run: gh release upload "$TAG" packslip/packslip.sigstore.json --clobber
# GITHUB_TOKEN starts no workflow run, so the app token publishes the
# release and starts the tap update.
- name: Publish the release
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,21 @@ Install using Go,
go install github.com/nnutter/timber@latest
```

Install the latest signed release with packslip,

```bash
packslip install github.com/nnutter/timber
```

or let mise manage it:

```bash
mise use -g packslip:github.com/nnutter/timber
```

The first signed release establishes the packslip signer.
`packslip pin` prints the fingerprint from a downloaded bundle; pass it with `--pin` to fix the signer before the first install.

`timber` requires Git on `PATH`.

Install the Pi review extension and `timber-review` skill:
Expand Down
76 changes: 38 additions & 38 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[settings]
minimum_release_age = "0"

[tools]
jactionlint = "latest"
# constable embeds the errcheck, sumtype, testifylint, and nilaway analyzers,
Expand Down
2 changes: 1 addition & 1 deletion skills/timber/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For detailed checklist editing, use the separate `timber-todo` skill.
## Prerequisites and configuration

- `timber` and Git must be on `PATH`.
Install Timber with `go install github.com/nnutter/timber@latest` (requires a compatible Go toolchain; see the repository's `go.mod`).
Install Timber with `go install github.com/nnutter/timber@latest` (requires a compatible Go toolchain; see the repository's `go.mod`), or from a signed release with `packslip install github.com/nnutter/timber` (mise: `mise use -g packslip:github.com/nnutter/timber`).
Verify with `timber --help`.
- Remote registration and worktree creation need access to the origin; creation fetches origin even when reusing an existing local branch.
Use the user's existing Git authentication.
Expand Down
Loading