File size: 1,153 Bytes
9a800e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
name: Deploy with Armory CD

on:
  push:
    branches:
      - main

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      # تثبيت Node (اختياري — احذفه إذا لم تحتاجه)
      - name: Setup Node
        uses: actions/setup-node@v3
        with:
          node-version: 18

      # تثبيت الحزم (اختياري)
      - name: Install dependencies
        run: npm install

      # تشغيل عملية النشر عبر Armory
      - name: Armory Continuous Deployment
        uses: armory/cli-deploy-action@v1.0.0
        with:
          filePath: deploy/config.yaml   # ← ضع مسار ملف إعدادات Armory هنا
          appName: my-app                # ← اسم التطبيق في Armory
          addContext: ""                 # ← اختياري

          clientId: ${{ secrets.ARMORY_CLIENT_ID }}
          clientSecret: ${{ secrets.ARMORY_CLIENT_SECRET }}

          audience: https://api.cloud.armory.io
          tokenIssuerUrl: https://auth.cloud.armory.io/oauth
          deployHostUrl: https://api.cloud.armory.io