|
34 | 34 | # runs-on: ubuntu-latest |
35 | 35 | # if: ${{ needs.check-latest-release.outputs.IS_LATEST_RELEASE}} == 'true' |
36 | 36 | # steps: |
| 37 | + # - name: Continue deployment? |
| 38 | + # if: ${{ needs.check-latest-release.outputs.IS_LATEST_RELEASE }} != 'true' |
| 39 | + # run: |- |
| 40 | + # echo "Deploy is not for the latest release. Stopping deployment" |
| 41 | + # exit 0 |
| 42 | + |
37 | 43 | # - name: Checkout |
38 | 44 | # uses: actions/checkout@v4 |
39 | 45 |
|
@@ -74,43 +80,43 @@ jobs: |
74 | 80 | runs-on: ubuntu-latest |
75 | 81 | steps: |
76 | 82 | - name: Continue deployment? |
77 | | - if: ${{ needs.check-latest-release.outputs.IS_LATEST_RELEASE }} != 'true' |
| 83 | + if: ${{ needs.check-latest-release.outputs.IS_LATEST_RELEASE }} == 'true' |
78 | 84 | run: |- |
79 | 85 | echo "Deploy is not for the latest release. Stopping deployment" |
80 | 86 | exit 0 |
81 | 87 |
|
82 | | - # - name: Checkout |
83 | | - # uses: actions/checkout@v4 |
84 | | - |
85 | | - # - name: Setup node |
86 | | - # id: setup_node |
87 | | - # uses: actions/setup-node@v4 |
88 | | - # with: |
89 | | - # node-version: 22 |
90 | | - # cache: "npm" |
91 | | - |
92 | | - # - name: Install Monorepo Dependencies |
93 | | - # run: |- |
94 | | - # # Install node dependencies |
95 | | - # node ./scripts/gtime.js monorepo_install npm ci |
96 | | - |
97 | | - # - name: Generate Retail App Demo |
98 | | - # uses: ./.github/actions/e2e_generate_app |
99 | | - # with: |
100 | | - # PROJECT_KEY: "retail-react-app-demo-site" |
101 | | - |
102 | | - # - name: Create MRT credentials file |
103 | | - # uses: "./.github/actions/create_mrt" |
104 | | - # with: |
105 | | - # mobify_user: ${{ secrets.MOBIFY_CLIENT_USER }} |
106 | | - # mobify_api_key: ${{ secrets.MOBIFY_CLIENT_API_KEY }} |
107 | | - |
108 | | - # #TODO - change target to production once testing is done |
109 | | - # - name: Push Bundle to MRT (Demo Site) |
110 | | - # uses: "./.github/actions/push_to_mrt" |
111 | | - # with: |
112 | | - # CWD: "../generated-projects/retail-react-app-demo-site" |
113 | | - # TARGET: staging |
114 | | - # PROJECT: scaffold-pwa |
115 | | - # MESSAGE: "tag ${{ github.event.release.tag_name }}" |
116 | | - # FLAGS: --wait |
| 88 | + - name: Checkout |
| 89 | + uses: actions/checkout@v4 |
| 90 | + |
| 91 | + - name: Setup node |
| 92 | + id: setup_node |
| 93 | + uses: actions/setup-node@v4 |
| 94 | + with: |
| 95 | + node-version: 22 |
| 96 | + cache: "npm" |
| 97 | + |
| 98 | + - name: Install Monorepo Dependencies |
| 99 | + run: |- |
| 100 | + # Install node dependencies |
| 101 | + node ./scripts/gtime.js monorepo_install npm ci |
| 102 | +
|
| 103 | + - name: Generate Retail App Demo |
| 104 | + uses: ./.github/actions/e2e_generate_app |
| 105 | + with: |
| 106 | + PROJECT_KEY: "retail-react-app-demo-site" |
| 107 | + |
| 108 | + - name: Create MRT credentials file |
| 109 | + uses: "./.github/actions/create_mrt" |
| 110 | + with: |
| 111 | + mobify_user: ${{ secrets.MOBIFY_CLIENT_USER }} |
| 112 | + mobify_api_key: ${{ secrets.MOBIFY_CLIENT_API_KEY }} |
| 113 | + |
| 114 | + #TODO - change target to production once testing is done |
| 115 | + - name: Push Bundle to MRT (Demo Site) |
| 116 | + uses: "./.github/actions/push_to_mrt" |
| 117 | + with: |
| 118 | + CWD: "../generated-projects/retail-react-app-demo-site" |
| 119 | + TARGET: staging |
| 120 | + PROJECT: scaffold-pwa |
| 121 | + MESSAGE: "tag ${{ github.event.release.tag_name }}" |
| 122 | + FLAGS: --wait |
0 commit comments