Skip to content

GitHub Releases Channel ထည့်သွင်းခြင်း

စမလုပ်ခင် လိုအပ်တာတွေ

အချက်သုံးခုပဲလိုပါတယ်:

လိုအပ်ချက်အသုံးပြုပုံ
GitHub accountaccess token ဖန်တီးရန်နှင့် repository ပိုင်ရန်။
GitHub Access TokenImgBed က GitHub API ကို access လုပ်ရန်၊ releases ဖန်တီးရန်၊ files upload လုပ်ရန်။
Repository namerepository name ပဲထည့်နိုင်ပါတယ်၊ ဥပမာ image

Setup Steps

Step 1: GitHub ထဲ Sign in ဝင်ပြီး Access Token ဖန်တီးပါ

  1. GitHub ထဲ sign in ဝင်ပါ။
  2. ညာဘက်အပေါ်ထောင့်က avatar ကိုနှိပ်ပြီး Settings ကိုဖွင့်ပါ။
  3. left sidebar မှ Developer settings ကိုဖွင့်ပါ။
  4. Personal access tokens ကိုဖွင့်ပါ။
  5. Tokens (classic) ကိုဖွင့်ပါ။
  6. Generate new token (classic) ကိုနှိပ်ပါ။
  7. token ကိုမှတ်မိလွယ်တဲ့အမည်ပေးပါ။
  8. ကိုယ်တိုင် maintenance လုပ်မယ့်အစီအစဉ်အလိုက် expiration date ရွေးပါ။
  9. repo နဲ့ workflow scopes ကိုရွေးပါ။
  10. token ဖန်တီးပြီးတာနဲ့ ချက်ချင်း copy လုပ်ပြီးသိမ်းပါ။

Add GitHub permissions

Step 2: ImgBed မှာ GitHub Releases Channel ဖြည့်ပါ

Upload Settings မှာ GitHub Releases ရွေးပြီးနောက်:

UI FieldWhat to Enter
Channel nameကိုယ်ရွေးတဲ့အမည်၊ ဥပမာ GitHubPrimary
Access Tokenမကြာသေးခင်ဖန်တီးထားတဲ့ GitHub Personal Access Token။
Repository nameshort repo name image သို့မဟုတ် full path username/image
Private repositoryလိုအပ်ချက်အရ on/off လုပ်ပါ။
Remarkoptional၊ ဥပမာ Primary upload channel

Fill in the GitHub channel configuration

Step 3: Channel Save လုပ်ပါ

fields ဖြည့်ပြီးနောက် Save ကိုနှိပ်ပါ။

system က ဒီအချက်တွေကို handle လုပ်ပါမယ်:

System BehaviorDescription
Short repository nameImgBed က current GitHub account ကိုသိပြီး value ကို full repository path အဖြစ် expand လုပ်သည်။
Full repository pathusername/repository path ကို ထည့်ထားတဲ့အတိုင်းသုံးသည်။
Repository checkcurrent personal account path ဖြစ်လျှင် repository မရှိသောအခါ ImgBed ကအလိုအလျောက် create လုပ်သည်။ full path ကို manual ထည့်ထားလျှင် အဲဒီ path ကိုပဲသုံးသည်။
Public/private staterepository visibility ကို current switch အတိုင်း synchronized လုပ်သည်။

Quick Checklist

GitHub Releases flow:

text
GitHub ထဲ sign in ဝင်ပါ
-> Access Token ဖန်တီးပါ
-> ImgBed ကိုပြန်သွားပြီး token နဲ့ repository name ထည့်ပါ
-> Save
-> repo name ပဲထည့်ထားရင် ImgBed က current username ကိုအလိုအလျောက်ထည့်ပါမယ်
-> username/repo ထည့်ထားရင် အဲဒီအတိုင်းသုံးပါမယ်
-> test image upload လုပ်ပါ

Released as user documentation for CloudFlare ImgBed.