forked from evgeny-nadymov/telegram-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.yml
More file actions
39 lines (39 loc) · 1.06 KB
/
Copy pathdeploy.yml
File metadata and controls
39 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy Telegram Plus 2
on:
push:
branches: [ "master", "main" ] # سيبدأ البناء فوراً عند الحفظ
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16 # النسخة الأكثر استقراراً لتليجرام ريأكت
- name: Install and Build
run: |
npm install
CI=false npm run build
env:
REACT_APP_TELEGRAM_API_ID: 23889134
REACT_APP_TELEGRAM_API_HASH: 5d334ce258f86f8b14527e121bb08443
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1