<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr" -->

---
title: How do I deploy my Laravel applications using Github Action?
description: Deploying Laravel applications can be automated using GitHub Actions to streamline the process. This guide provides step-by-step instructions to set up a...
canonical: https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How do I deploy my Laravel applications using Github Action? | daily.dev
og:description: Deploying Laravel applications can be automated using GitHub Actions to streamline the process. This guide provides step-by-step instructions to set up a...
og:url: https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr
og:image: https://api.daily.dev/og/posts/vsNAhjGXR.png
og:image:alt: How do I deploy my Laravel applications using Github Action?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I deploy my Laravel applications using Github Action?

**[Community Picks](https://daily.dev/sources/community)** · 6 min read · 99 upvotes · 5 comments

## Summary

Deploying Laravel applications can be automated using GitHub Actions to streamline the process. This guide provides step-by-step instructions to set up a GitHub Actions pipeline, including the necessary YAML and bash scripts. It explains the creation of a `.github/workflows` directory, the setup of variables for repository secrets, and the jobs for building, deploying, and cleaning up a decoy branch. The post offers solutions for handling deployments on low-end cPanel servers and emphasizes the importance of resource optimization.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://achyutneupane.medium.com/how-do-i-deploy-my-laravel-applications-using-github-action-ebb2c0a79e8f>

## Community discussion

Top comments from developers on daily.dev.

**@bossoff** · 3 upvotes

> Let me give it try

**@naphii** · 2 upvotes

> This would definitely work for smaller applications. Usually when we deploy large scale applications we tend to use containerisation to build an artifact and then use container orchastrctor to auto scale the application.

**@gonzaloaguero** · 0 upvotes

> Very interesting and useful. I will put it into practice soon😁

---

Tags: [#devops](https://daily.dev/tags/devops), [#automation](https://daily.dev/tags/automation), [#cicd](https://daily.dev/tags/cicd), [#laravel](https://daily.dev/tags/laravel), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How do I deploy my Laravel applications using Github Action?","url":"https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr"},"datePublished":"2024-12-13T18:07:07.378Z","dateModified":"2024-12-13T18:07:44.626Z","description":"Deploying Laravel applications can be automated using GitHub Actions to streamline the process. This guide provides step-by-step instructions to set up a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/877eb4c8d23e04a0d0ae2ad8838cb6c5?_a=AQAEuj9","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/877eb4c8d23e04a0d0ae2ad8838cb6c5?_a=AQAEuj9","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":99},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":"devops,automation,cicd,laravel,github-actions","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"How do I deploy my Laravel applications using Github Action?"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-do-i-deploy-my-laravel-applications-using-github-action--vsnahjgxr","comment":[{"@type":"Comment","text":"Let me give it try","datePublished":"2024-12-18T03:42:53.776Z","url":"https://daily.dev/posts/vsNAhjGXR#c-Yq1xFebhp","author":{"@type":"Person","name":"Raji Samad","url":"https://daily.dev/bossoff","image":"https://avatars.githubusercontent.com/u/30760187?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"This would definitely work for smaller applications. Usually when we deploy large scale applications we tend to use containerisation to build an artifact and then use container orchastrctor to auto scale the application.","datePublished":"2024-12-24T06:08:32.381Z","url":"https://daily.dev/posts/vsNAhjGXR#c-SQDeMK4BS","author":{"@type":"Person","name":"Naphii","url":"https://daily.dev/naphii","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Very interesting and useful. I will put it into practice soon😁","datePublished":"2025-01-11T19:28:31.865Z","url":"https://daily.dev/posts/vsNAhjGXR#c-4KzXGeKvr","author":{"@type":"Person","name":"Gonzalo Agüero","url":"https://daily.dev/gonzaloaguero","image":"https://media.daily.dev/image/upload/s--3nBUgVVY--/f_auto,q_auto/v1/avatars/avatar_w3G4v0l4AF5pRHwmkpZPb"}}]}
```

