লাইভ & GitHub পুল অনুরোধের মাধ্যমে চ্যানেলগুলির পূর্বরূপ দেখুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনি একটি GitHub অ্যাকশনের মাধ্যমে Firebase Hosting এ স্থাপনার সংহত করতে পারেন। এই GitHub অ্যাকশন আপনার জন্য কি করতে পারে তা এখানে:
আপনার GitHub সংগ্রহস্থলে প্রতিটি PR-এর জন্য একটি নতুন পূর্বরূপ চ্যানেল (এবং এর সম্পর্কিত পূর্বরূপ URL) তৈরি করে।
পূর্বরূপ URL সহ PR-এ একটি মন্তব্য যোগ করে যাতে আপনি এবং প্রতিটি পর্যালোচক আপনার অ্যাপের একটি "প্রিভিউ" সংস্করণে PR-এর পরিবর্তনগুলি দেখতে এবং পরীক্ষা করতে পারেন৷

সংশ্লিষ্ট প্রিভিউ চ্যানেলে স্বয়ংক্রিয়ভাবে স্থাপন করে প্রতিটি প্রতিশ্রুতি থেকে পরিবর্তন সহ পূর্বরূপ URL আপডেট করে। প্রতিটি নতুন প্রতিশ্রুতির সাথে URL পরিবর্তন হয় না।
(ঐচ্ছিক) পিআর একত্রিত হলে আপনার লাইভ চ্যানেলে আপনার GitHub রেপোর বর্তমান অবস্থা স্থাপন করে।
অনুস্মারক: প্রিভিউ ইউআরএল ব্যবহার করার সময়, আপনার অ্যাপ আপনার ফায়ারবেস প্রোজেক্টের আসল ব্যাকএন্ড রিসোর্সের সাথে ইন্টারঅ্যাক্ট করে।
Firebase Hosting এ স্থাপন করতে গিটহাব অ্যাকশন সেট আপ করুন
একটি GitHub সংগ্রহস্থল (সর্বজনীন বা ব্যক্তিগত) তৈরি করুন বা বিদ্যমান একটি ব্যবহার করুন। সংগ্রহস্থলের জন্য আপনার অবশ্যই প্রশাসকের অনুমতি থাকতে হবে।
আপনার রেপোর একটি স্থানীয় সংস্করণে, firebase init
কমান্ড ব্যবহার করে Firebase Hosting সেট আপ করুন।
আপনি যদি Hosting সেট আপ না করে থাকেন তবে আপনার স্থানীয় ডিরেক্টরির রুট থেকে কমান্ডের এই সংস্করণটি চালান:
firebase init hosting
আপনি যদি ইতিমধ্যেই Hosting সেট আপ করে থাকেন তবে আপনাকে Hosting গিটহাব অ্যাকশন অংশটি সেট আপ করতে হবে। আপনার স্থানীয় ডিরেক্টরির রুট থেকে কমান্ডের এই সংস্করণটি চালান:
firebase init hosting:github
CLI প্রম্পটগুলি অনুসরণ করুন, এবং কমান্ডটি স্বয়ংক্রিয়ভাবে গিটহাব অ্যাকশন সেট আপ করার যত্ন নেবে:
Firebase Hosting এ স্থাপন করার অনুমতি সহ আপনার Firebase প্রকল্পে একটি পরিষেবা অ্যাকাউন্ট তৈরি করে।
পরিষেবা অ্যাকাউন্টের JSON কী এনক্রিপ্ট করে এবং একটি GitHub গোপন হিসাবে নির্দিষ্ট GitHub সংগ্রহস্থলে আপলোড করে।
GitHub ওয়ার্কফ্লো yaml
কনফিগারেশন ফাইলগুলি লেখে যা নতুন তৈরি গোপনীয়তার উল্লেখ করে। এই ফাইলগুলি Firebase Hosting এ স্থাপন করার জন্য GitHub অ্যাকশন কনফিগার করে।
GitHub-এ, একটি নতুন শাখা তৈরি করুন এবং CLI দ্বারা তৈরি ওয়ার্কফ্লো yaml
ফাইলগুলি কমিট করুন।
শাখাটি আপনার GitHub সংগ্রহস্থলে প্রকাশ করুন।
শাখা একত্রিত করুন।
তাই তো! এই GitHub রেপোতে পরবর্তী যেকোনো PR স্বয়ংক্রিয়ভাবে তার নিজস্ব "প্রিভিউ URL" পেয়ে যাবে!
গিটহাব অ্যাকশন সম্পর্কে আরও জানুন
ফায়ারবেস একটি ওপেন-সোর্স প্রজেক্ট হিসাবে " Firebase Hosting স্থাপন" গিটহাব অ্যাকশন বজায় রাখে। সোর্স কোড দেখুন।
"Deploy to Firebase Hosting " GitHub অ্যাকশন আরও কনফিগারেশনের জন্য অনুমতি দেয়, যেমন একটি প্রিভিউ চ্যানেলের মেয়াদ শেষ হওয়ার তারিখ কাস্টমাইজ করা বা PR মার্জ করার সময় একটি নন-লাইভ চ্যানেল সেট করা। উপলব্ধ কনফিগারেশন বিকল্প সম্পর্কে জানুন.
সাধারণভাবে GitHub অ্যাকশন সম্পর্কে আরও জানুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["\u003cbr /\u003e\n\nYou can integrate deploys to Firebase Hosting via a GitHub Action. Here's\nwhat this GitHub Action can do for you:\n\n- Creates a new preview channel (and its associated preview URL) for every PR on\n your GitHub repository.\n\n- Adds a comment to the PR with the preview URL\n so that you and each reviewer can view and test the PR's changes in a\n \"preview\" version of your app.\n\n- Updates the preview URL with changes from each commit by automatically\n deploying to the associated preview channel. The URL doesn't change with each\n new commit.\n\n- *(Optional)* Deploys the current state of your GitHub repo to your live\n channel when the PR is merged.\n\nReminder: When using preview URLs, your app interacts with the *real* backend\nresources of your Firebase project.\n\nSet up the GitHub Action to deploy to Firebase Hosting\n\n1. Create a GitHub repository (public or private) or use an existing one. You\n must have admin permissions for the repository.\n\n2. In a local version of your repo, set up Firebase Hosting using the\n [`firebase init` command](/docs/hosting/quickstart#initialize).\n\n - If you've NOT set up Hosting, run this version of the command\n from the root of your local directory:\n\n ```\n firebase init hosting\n ```\n - If you've ALREADY set up Hosting, then you just need to set up the\n GitHub Action part of Hosting. Run this version of the command from\n the root of your local directory:\n\n ```\n firebase init hosting:github\n ```\n3. Follow the CLI prompts, and the command will automatically take care of\n setting up the GitHub Action:\n\n - Creates a service account in your Firebase project with permission to\n deploy to Firebase Hosting.\n\n - Encrypts that service account's JSON key and uploads it to the specified\n GitHub repository as a\n [GitHub secret](//docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets).\n\n - Writes GitHub workflow `yaml` configuration files that reference the\n newly created secret. These files configure the GitHub Action to deploy to\n Firebase Hosting.\n\n4. In GitHub, create a new branch and commit the workflow `yaml` files created\n by the CLI.\n\n5. Publish the branch to your GitHub repository.\n\n6. Merge the branch.\n\nThat's it! Any subsequent PR in this GitHub repo will automatically get its own\n\"preview URL\"!\n\nLearn more about the GitHub Action\n\n- Firebase maintains the \"Deploy to Firebase Hosting\" GitHub Action as an\n open-source project.\n [View the source code.](//github.com/marketplace/actions/deploy-to-firebase-hosting)\n\n- The \"Deploy to Firebase Hosting\" GitHub Action allows for further\n configuration, like customizing the expiry date for a preview channel or\n setting a non-live channel to deploy to when a PR is merged.\n [Learn about the available configuration options.](//github.com/marketplace/actions/deploy-to-firebase-hosting#options)\n\n- Learn more about\n [GitHub Actions](//docs.github.com/en/free-pro-team@latest/actions),\n in general."]]