Context menu → hold Option; “Copy” will change to “Copy <file> as Path”. (Sometimes you can just drag and drop the file to where you want to paste, but that depends on the destination app and so isn’t consistent.)