Skip to content

Commit

Permalink
upload-release.pl: Update latest-release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jul 8, 2020
1 parent 16ec778 commit 7d8d78f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions maintainers/upload-release.pl
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,5 @@ sub getStorePath {
chdir("/home/eelco/Dev/nix-pristine") or die;
system("git remote update origin") == 0 or die;
system("git tag --force --sign $version $nixRev -m 'Tagging release $version'") == 0 or die;

# Update the website.
my $siteDir = "/home/eelco/Dev/nixos-homepage-pristine";

system("cd $siteDir && git pull") == 0 or die;

write_file("$siteDir/nix-release.tt",
"[%-\n" .
"latestNixVersion = \"$version\"\n" .
"-%]\n");

system("cd $siteDir && git commit -a -m 'Nix $version released'") == 0 or die;
system("git push --tags") == 0 or die;
system("git push --force-with-lease origin $nixRev:refs/heads/latest-release") == 0 or die;

0 comments on commit 7d8d78f

Please sign in to comment.