I have added css on custom phtml file using:
<link rel="stylesheet" type="text/css" href="<?php echo $block->getViewFileUrl('css/banner.css')?>">
and placed the CSS file in folder: Magento_Theme/web/css
When I load page and view the page content source it shows the CSS path as:
<link rel="stylesheet" type="text/css" href="http://xyz/magento-2/pub/static/version1530249778/frontend/Magento/mytheme/en_US/css/banner.css">
But not created any file on pub/static folder. I have cleared the cache and run the upgrade command.
Thanks