{"id":62963,"date":"2020-11-05T14:21:19","date_gmt":"2020-11-05T19:21:19","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=62963"},"modified":"2023-07-17T15:35:54","modified_gmt":"2023-07-17T19:35:54","slug":"deploy-files-github-actions","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/","title":{"rendered":"Deploy Files With GitHub Actions for FTP and SCP"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png\" alt=\"GitHub actions for file deployment, FTP, and SCP\" class=\"wp-image-62967\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>GitHub actions allows to make use of your GitHub-hosted code repositories for running custom scripts for testing, deployment, and much more. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#before\">Before You Get Started (Some Caveats and Prerequisites)<\/a><\/li>\n\n\n\n<li><a href=\"#how-github-actions-work\">(Basically) How GitHub Actions Work<\/a><\/li>\n\n\n\n<li><a href=\"#github-ftp-action\">How to set up the GitHub FTP Action<\/a><\/li>\n\n\n\n<li><a href=\"#scp\">Deploy Files to Unmanaged VPS Cloud Server With SCP (Added Security)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"before\">Before You Get Started (Some Caveats and Prerequisites)<\/h2>\n\n\n\n<p>\nBefore you start this tutorial, you should already have the following\nresources up and running:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A website project under Git version control<\/li>\n\n\n\n<li>A remote repository hosted at GitHub<\/li>\n<\/ul>\n\n\n\n<p>The FTP (and SCP) GitHub actions you will be using trigger on \u201cpush,\u201d meaning they are set to run when you push changes to your remote repository hosted at GitHub. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-github-actions-work\">(Basically) How GitHub Actions Work<\/h2>\n\n\n\n<p>GitHub actions can seem confusing at first glance, but most of the complicated work has been done for you.  The necessary GitHub actions for basic file deployment and publishing just require you to plug and play. <\/p>\n\n\n\n<p>The configurations for your actions are held in a \u201cyaml\u201d file: <code>main.yml<\/code> in a \u201c.github\/workflows\u201d directory. <\/p>\n\n\n\n<p>Just create a \u201c.github\u201d directory in your project\u2019s working directory, followed by a \u201cworkflows\u201d directory beneath.  Then create your <code>main.yml<\/code> file inside the \u201cworkflows\u201d directory. <\/p>\n\n\n\n<p>\nThe directory structure will look like this:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;working-directory&gt;\/.github\/workflows\/main.yml\n<\/pre>\n\n\n\n<p>The GitHub actions take place on the GitHub server, not your InMotion Hosting server, and they are triggered by various git commands. <\/p>\n\n\n\n<p>\nIn the examples used in this article, the action is triggered on\n\u201cpush,\u201d the git command to send your code to the repository.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"secrets\">GitHub Secrets<\/h3>\n\n\n\n<p>Have a secret to share?  Or, rather <i>not<\/i> share?  Of course you do. In order to deploy your files to a server, you will need some secret credentials.  For example, in the FTP action, GitHub will take your FTP username and password and use them to log into the destination server. <\/p>\n\n\n\n<p>But, your \u201cyaml\u201d file, which contains the action values, is available in your repository, which is a massive security hazard.  GitHub has solved this dilemma by allowing you to add \u201csecrets\u201d to your repository that can be passed in as variables. <\/p>\n\n\n\n<p>In the \u201cyaml\u201d configuration, you will be able to add secret key values that will act as placeholders for the real secret, which will only be accessible to you or anyone else who has access to your GitHub account. <\/p>\n\n\n\n<p>For example: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ftp-password: <span style=\"color:red;\">${{ secrets.FTP_PASSWORD }}<\/span>\n<\/pre>\n\n\n\n<p>To add a \u201csecret\u201d to your repository, click the <b>Settings<\/b> tab and choose <i>Secrets<\/i>.  These secrets apply only to the individual repository. <\/p>\n\n\n\n<center>\n<figure class=\"wp-block-image size-large\">\n<img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/GitHub_add_secret.png\" alt=\"Add new secret to repository settings in GitHub\" class=\"wp-image-10329\">\n<\/figure>\n<\/center>\n\n\n\n<p>As always, security must be your first concern, so how you choose to manage your GitHub account will be critical to making sure these secrets are safe.  To that end, GitHub allows you to <a href=\"https:\/\/docs.github.com\/en\/free-pro-team@latest\/github\/authenticating-to-github\/configuring-two-factor-authentication\" target=\"_blank\" rel=\"noopener noreferrer\">set up 2-factor authentication<\/a>; which will add another layer of security on top of your default username\/password combination. <\/p>\n\n\n\n<p>If you are interested in how to deploy files to your <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">unmanaged VPS<\/a> without using GitHub as a hosted service, check out our full guide on how to <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/using-git-to-publish-files\/\">publish files to your server using Git<\/a>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"github-ftp-action\">Using The GitHub FTP Action<\/h2>\n\n\n\n<p>The \u201c<a href=\"https:\/\/github.com\/marketplace\/actions\/ftp-deploy\" target=\"_blank\" rel=\"noopener noreferrer\">ftp-deploy<\/a>\u201d action is ideal for deploying files to your <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">WordPress Hosting<\/a>, <a href=\"https:\/\/www.inmotionhosting.com\/shared-hosting\">shared hosting<\/a>, or <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">cPanel managed VPS<\/a> accounts. <\/p>\n\n\n\n<p>However, for <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">cloud servers<\/a>, the <a href=\"#scp\">SCP method<\/a> is recommended. <\/p>\n\n\n\n<p>Edit the <code>.github\/workflows\/main.yml<\/code> file and place this code inside: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><span style=\"color:red;\">on<\/span>: push\n<span style=\"color:red;\">name<\/span>: Publish Website\n<span style=\"color:red;\">jobs<\/span>:\n  <span style=\"color:red;\">FTP-Deploy-Action<\/span>:\n    <span style=\"color:red;\">name<\/span>: FTP-Deploy-Action\n    <span style=\"color:red;\">runs-on<\/span>: ubuntu-latest\n    <span style=\"color:red;\">steps<\/span>:\n    - <span style=\"color:red;\">uses<\/span>: actions\/checkout@v2.1.0\n      <span style=\"color:red;\">with<\/span>:\n        <span style=\"color:red;\">fetch-depth<\/span>: 2\n    - <span style=\"color:red;\">name<\/span>: FTP-Deploy-Action\n      <span style=\"color:red;\">uses<\/span>: SamKirkland\/FTP-Deploy-Action@3.1.1\n      <span style=\"color:red;\">with<\/span>:\n        <span style=\"color:red;\">ftp-server<\/span>: ftp:\/\/ftp.example.com:21\/public_html\n        <span style=\"color:red;\">ftp-username<\/span>: userna5\n        <span style=\"color:red;\">ftp-password<\/span>: ${{ secrets.FTP_PASSWORD }}\n<\/pre>\n\n\n\n<p>Note the following: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The file path set for the \u201cftp-server\u201d option lands in \u201cpublic_html\u201d\ndirectory; make sure to update this as necessary for your project,\nor leave it as is to drop your project files in that directory.<\/li>\n\n\n\n<li>The username \u201cuserna5\u201d must be substituted with your correct cPanel\nor FTP username.<\/li>\n\n\n\n<li>Alternatively, you could use a GitHub secret for your username in\nthe same fashion as the FTP password.<\/li>\n<\/ul>\n\n\n\n<p>Before committing and pushing your code to the repository, make sure you have substituted all of the placeholder values, including \u201cFTP_PASSWORD\u201d secret. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"scp\">Deploy Files to Unmanaged VPS Cloud Server With SCP (Added Security)<\/h2>\n\n\n\n<p>Using the \u201c<a href=\"https:\/\/github.com\/appleboy\/scp-action\" target=\"_blank\" rel=\"noopener noreferrer\">scp-action<\/a>\u201d action available from the GitHub website, SCP offers an extra layer of security with SSH keys. <\/p>\n\n\n\n<p>By default, your InMotion Hosting cloud VPS does not allow root login via password authentication.  SSH key authentication provides your only way in.  In order to allow GitHub to copy files to your server, you will need to add your SSH private key and <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-create-a-strong-passphrase-for-ssh\/\">secure passphrase<\/a> as a GitHub secret, and, optionally, your username (which would be \u201croot\u201d by default), hostname (or IP address). <\/p>\n\n\n\n<p>Here is the \u201cyaml\u201d configuration for SCP: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><span style=\"color:red;\">name:<\/span> scp files\n<span style=\"color:red;\">on:<\/span> [push]\n<span style=\"color:red;\">jobs:<\/span>\n\n  <span style=\"color:red;\">build:<\/span>\n    <span style=\"color:red;\">name:<\/span> Build\n    <span style=\"color:red;\">runs-on:<\/span> ubuntu-latest\n    <span style=\"color:red;\">steps:<\/span>\n    <span style=\"color:red;\">- uses:<\/span> actions\/checkout@master\n    <span style=\"color:red;\">- name:<\/span> copy file via ssh password\n      <span style=\"color:red;\">uses:<\/span> appleboy\/scp-action@master\n      <span style=\"color:red;\">with:<\/span>\n        <span style=\"color:red;\">host:<\/span> ${{ secrets.HOST }}\n        <span style=\"color:red;\">username:<\/span> ${{ secrets.USERNAME }}\n        <span style=\"color:red;\">key:<\/span> ${{ secrets.SSH2 }}\n        <span style=\"color:red;\">passphrase:<\/span> ${{ secrets.PASSPHRASE }}\n        <span style=\"color:red;\">port:<\/span> ${{ secrets.PORT }}\n        <span style=\"color:red;\">source:<\/span> \"index.html,textfiles\/*\"\n        <span style=\"color:red;\">target:<\/span> \"\/var\/www\/html\"\n<\/pre>\n\n\n\n<p>As with the FTP action, this action will trigger on the GitHub server when you push your changes to the repository. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p>Well done, you now know how to run GitHub actions for file deployment with both the FTP and SCP file transfer methods. Be sure to leave a comment or question if you have any issues or suggestions. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub actions allows to make use of your GitHub-hosted code repositories for running custom scripts for testing, deployment, and much more. Before You Get Started (Some Caveats and Prerequisites) Before you start this tutorial, you should already have the following resources up and running: The FTP (and SCP) GitHub actions you will be using trigger<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4309],"tags":[],"class_list":["post-62963","post","type-post","status-publish","format-standard","hentry","category-git"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deploy Files With GitHub Actions for FTP and SCP<\/title>\n<meta name=\"description\" content=\"GitHub actions can greatly simplify for file transfer and code deployment tasks. Quick and easy actions can be literally plucked and placed into your GitHub working directory to greatly speed up your workflow.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploy Files With GitHub Actions for FTP and SCP\" \/>\n<meta property=\"og:description\" content=\"GitHub actions can greatly simplify for file transfer and code deployment tasks. Quick and easy actions can be literally plucked and placed into your GitHub working directory to greatly speed up your workflow.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-05T19:21:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-17T19:35:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Deploy Files With GitHub Actions for FTP and SCP\",\"datePublished\":\"2020-11-05T19:21:19+00:00\",\"dateModified\":\"2023-07-17T19:35:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\"},\"wordCount\":800,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png\",\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\",\"name\":\"Deploy Files With GitHub Actions for FTP and SCP\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png\",\"datePublished\":\"2020-11-05T19:21:19+00:00\",\"dateModified\":\"2023-07-17T19:35:54+00:00\",\"description\":\"GitHub actions can greatly simplify for file transfer and code deployment tasks. Quick and easy actions can be literally plucked and placed into your GitHub working directory to greatly speed up your workflow.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploy Files With GitHub Actions for FTP and SCP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploy Files With GitHub Actions for FTP and SCP","description":"GitHub actions can greatly simplify for file transfer and code deployment tasks. Quick and easy actions can be literally plucked and placed into your GitHub working directory to greatly speed up your workflow.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/","og_locale":"en_US","og_type":"article","og_title":"Deploy Files With GitHub Actions for FTP and SCP","og_description":"GitHub actions can greatly simplify for file transfer and code deployment tasks. Quick and easy actions can be literally plucked and placed into your GitHub working directory to greatly speed up your workflow.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-11-05T19:21:19+00:00","article_modified_time":"2023-07-17T19:35:54+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Deploy Files With GitHub Actions for FTP and SCP","datePublished":"2020-11-05T19:21:19+00:00","dateModified":"2023-07-17T19:35:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/"},"wordCount":800,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png","articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/","name":"Deploy Files With GitHub Actions for FTP and SCP","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files-1024x538.png","datePublished":"2020-11-05T19:21:19+00:00","dateModified":"2023-07-17T19:35:54+00:00","description":"GitHub actions can greatly simplify for file transfer and code deployment tasks. Quick and easy actions can be literally plucked and placed into your GitHub working directory to greatly speed up your workflow.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/github_actions_deploy_files.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/deploy-files-github-actions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Deploy Files With GitHub Actions for FTP and SCP"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4309,"name":"Git","slug":"git","link":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/62963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=62963"}],"version-history":[{"count":9,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/62963\/revisions"}],"predecessor-version":[{"id":105698,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/62963\/revisions\/105698"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=62963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=62963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=62963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}