Skip to content

Commit f0deacb

Browse files
committed
test
1 parent d662a3f commit f0deacb

File tree

1 file changed

+42
-36
lines changed

1 file changed

+42
-36
lines changed

.github/workflows/deploy_latest_release.yml

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
# runs-on: ubuntu-latest
3535
# if: ${{ needs.check-latest-release.outputs.IS_LATEST_RELEASE}} == 'true'
3636
# 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+
3743
# - name: Checkout
3844
# uses: actions/checkout@v4
3945

@@ -74,43 +80,43 @@ jobs:
7480
runs-on: ubuntu-latest
7581
steps:
7682
- 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'
7884
run: |-
7985
echo "Deploy is not for the latest release. Stopping deployment"
8086
exit 0
8187
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

Comments
 (0)