From 462605139196ecd2179552468860f6ea576da047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 21 Aug 2022 12:02:43 +0100 Subject: [PATCH] deploy using correct domain --- .build.yml | 15 ++++++++------- flake.nix | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.build.yml b/.build.yml index 325317a..ded38bf 100644 --- a/.build.yml +++ b/.build.yml @@ -2,15 +2,16 @@ image: nixos/latest sources: - https://git.sr.ht/~cyplo/blog +oauth: pages.sr.ht/PAGES:RW + secrets: - 6c23a8c1-7a30-4a7e-b3b7-0171e898a7d3 - 47d167ed-ef43-4515-9923-6954d34a4fab -oauth: pages.sr.ht/PAGES:RW +environment: + site: blog.cyplo.dev tasks: - - hwinfo: | - nix-shell -p lshw --run "lshw -short -quiet -sanitize -c memory -c processor" - fetch_tools: | cd blog nix-shell --pure --run 'date' @@ -24,7 +25,7 @@ tasks: cd blog nix-shell --pure --run 'hugo --gc --minify' - package: | - tar -C blog/public -cvz . > site.tar.gz - ls -hal site.tar.gz - - sourcehut_upload: | - acurl -i -f https://pages.sr.ht/publish/cyplo.srht.site -Fcontent=@site.tar.gz + cd blog + tar -cvz . > ../site.tar.gz + - upload: | + hut pages publish -d $site site.tar.gz diff --git a/flake.nix b/flake.nix index 5473713..c009dd5 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,7 @@ cacert git hugo + hut ]; }; });