hyprspace/dev/jobs/release.nix
Max 71dcc1886e
Release automation (#80)
* add hercules-ci-effects

* flake.lock: Update

Flake lock file updates:

• Added input 'hercules-ci-effects':
    'github:max-privatevoid/hercules-ci-effects/b8127446a483cfd91495037e343b592662033188?narHash=sha256-xlxgYZ0eCnr9ikQuM5VuD8rUjLdbGzSKgF2EoRKDn/8%3D' (2025-07-01)
• Added input 'hercules-ci-effects/flake-parts':
    follows 'flake-parts'
• Added input 'hercules-ci-effects/nixpkgs':
    follows 'nixpkgs'

* provide binary artifacts via github releases

* auto-tag releases from current package version
2025-07-01 23:45:12 +02:00

23 lines
448 B
Nix

{
config,
lib,
withSystem,
...
}:
{
hercules-ci.github-releases = {
condition = { branch, ... }: branch == "master";
releaseTag =
_: "v${withSystem config.defaultEffectSystem ({ config, ... }: config.packages.hyprspace.version)}";
filesPerSystem =
{ config, system, ... }:
[
{
label = "hyprspace-${system}";
path = lib.getExe config.packages.hyprspace;
}
];
};
}