From 2bc0a37059324715ac97e1442afc1f6b8d708220 Mon Sep 17 00:00:00 2001 From: Federico Perini Date: Mon, 25 Mar 2024 12:57:03 +0100 Subject: [PATCH] add `fpm_model.json` to `fpm_publish` archiver command --- src/fpm/cmd/publish.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fpm/cmd/publish.f90 b/src/fpm/cmd/publish.f90 index 28f86e16d0..225e83f923 100644 --- a/src/fpm/cmd/publish.f90 +++ b/src/fpm/cmd/publish.f90 @@ -65,7 +65,7 @@ subroutine cmd_publish(settings) end do tmp_file = get_temp_filename() - call git_archive('.', tmp_file, 'HEAD', settings%verbose, error) + call git_archive('.', tmp_file, 'HEAD', additional_files=['fpm_model.json'], verbose=settings%verbose, error=error) if (allocated(error)) call fpm_stop(1, '*cmd_publish* Archive error: '//error%message) call model%dump('fpm_model.json', error, json=.true.) if (allocated(error)) call fpm_stop(1, '*cmd_publish* Model dump error: '//error%message)