Skip to content

Commit

Permalink
fix: NUR releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Dec 28, 2023
1 parent 7abc74d commit 709c4fc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ nix:
repository:
owner: dustinblackman
name: nur-packages
skip_upload: true
homepage: https://github.com/dustinblackman/oatmeal
description: Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!
path: pkgs/oatmeal.nix
Expand Down
13 changes: 13 additions & 0 deletions tools/nur.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

VERSION="$1"
DIST="$2"
TMPDIR="$(mktemp -d)"

cd "$TMPDIR"
git clone --depth 1 [email protected]:dustinblackman/nur-packages.git .
./scripts/goreleaser-v2.sh oatmeal "$VERSION" "$DIST"
cd ~
rm -rf "$TMPDIR"
1 change: 1 addition & 0 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ cargo gha gh pr list -R microsoft/winget-pkgs -A dustinblackman --state open --j
# Release to package managers not supported by GoReleaser.
cargo publish
tools/apt.sh "$OM_VERSION" "$(realpath dist)"
tools/nur.sh "$OM_VERSION" "$(realpath dist)"
tools/yum.sh "$OM_VERSION" "$(realpath dist)"
tools/choco.sh "$OM_VERSION" "$(realpath dist)"

Expand Down

0 comments on commit 709c4fc

Please sign in to comment.