Skip to content

Commit 2bc0a37

Browse files
authored
add fpm_model.json to fpm_publish archiver command
1 parent c5222b1 commit 2bc0a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fpm/cmd/publish.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ subroutine cmd_publish(settings)
6565
end do
6666

6767
tmp_file = get_temp_filename()
68-
call git_archive('.', tmp_file, 'HEAD', settings%verbose, error)
68+
call git_archive('.', tmp_file, 'HEAD', additional_files=['fpm_model.json'], verbose=settings%verbose, error=error)
6969
if (allocated(error)) call fpm_stop(1, '*cmd_publish* Archive error: '//error%message)
7070
call model%dump('fpm_model.json', error, json=.true.)
7171
if (allocated(error)) call fpm_stop(1, '*cmd_publish* Model dump error: '//error%message)

0 commit comments

Comments
 (0)