Skip to content

Commit e7da5be

Browse files
committed
Re-enable bug bounty deploy
1 parent e71baf0 commit e7da5be

File tree

1 file changed

+35
-37
lines changed

1 file changed

+35
-37
lines changed

.github/workflows/deploy_latest_release.yml

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -31,51 +31,50 @@ jobs:
3131
echo "Deploy is not for the latest release. Stopping deployment"
3232
fi
3333
34-
# Re-enable this when the PR is ready to be merged
35-
# deploy-bug-bounty:
36-
# needs: check-latest-release
37-
# runs-on: ubuntu-latest
38-
# if: needs.check-latest-release.outputs.IS_LATEST_RELEASE == 'true'
39-
# steps:
40-
# - name: Checkout
41-
# uses: actions/checkout@v4
34+
deploy-bug-bounty:
35+
needs: check-latest-release
36+
runs-on: ubuntu-latest
37+
if: needs.check-latest-release.outputs.IS_LATEST_RELEASE == 'true'
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v4
4241

43-
# - name: Setup node
44-
# id: setup_node
45-
# uses: actions/setup-node@v4
46-
# with:
47-
# node-version: 22
48-
# cache: "npm"
42+
- name: Setup node
43+
id: setup_node
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 22
47+
cache: "npm"
4948

50-
# - name: Install Monorepo Dependencies
51-
# run: |-
52-
# # Install node dependencies
53-
# node ./scripts/gtime.js monorepo_install npm ci
49+
- name: Install Monorepo Dependencies
50+
run: |-
51+
# Install node dependencies
52+
node ./scripts/gtime.js monorepo_install npm ci
5453
55-
# - name: Generate Retail App Demo
56-
# uses: ./.github/actions/e2e_generate_app
57-
# with:
58-
# PROJECT_KEY: "retail-react-app-bug-bounty"
54+
- name: Generate Retail App Demo
55+
uses: ./.github/actions/e2e_generate_app
56+
with:
57+
PROJECT_KEY: "retail-react-app-bug-bounty"
5958

60-
# - name: Create MRT credentials file
61-
# uses: "./.github/actions/create_mrt"
62-
# with:
63-
# mobify_user: ${{ secrets.MOBIFY_STG_CLIENT_USER }}
64-
# mobify_api_key: ${{ secrets.MOBIFY_STG_CLIENT_API_KEY }}
59+
- name: Create MRT credentials file
60+
uses: "./.github/actions/create_mrt"
61+
with:
62+
mobify_user: ${{ secrets.MOBIFY_STG_CLIENT_USER }}
63+
mobify_api_key: ${{ secrets.MOBIFY_STG_CLIENT_API_KEY }}
6564

66-
# - name: Push Bundle to MRT (Bug Bounty)
67-
# uses: "./.github/actions/push_to_mrt"
68-
# with:
69-
# CWD: "../generated-projects/retail-react-app-bug-bounty"
70-
# TARGET: testing
71-
# PROJECT: pwa-kit
72-
# MESSAGE: "tag ${{ github.event.release.tag_name }}"
73-
# FLAGS: --cloud-origin https://cloud-testing.mobify-staging.com -c ~/.mobify --wait
65+
- name: Push Bundle to MRT (Bug Bounty)
66+
uses: "./.github/actions/push_to_mrt"
67+
with:
68+
CWD: "../generated-projects/retail-react-app-bug-bounty"
69+
TARGET: testing
70+
PROJECT: pwa-kit
71+
MESSAGE: "tag ${{ github.event.release.tag_name }}"
72+
FLAGS: --cloud-origin https://cloud-testing.mobify-staging.com -c ~/.mobify --wait
7473

7574
deploy-demo-site:
7675
needs: check-latest-release
7776
runs-on: ubuntu-latest
78-
if: needs.check-latest-release.outputs.IS_LATEST_RELEASE != 'true'
77+
if: needs.check-latest-release.outputs.IS_LATEST_RELEASE == 'true'
7978
steps:
8079
- name: Checkout
8180
uses: actions/checkout@v4
@@ -103,7 +102,6 @@ jobs:
103102
mobify_user: ${{ secrets.MOBIFY_CLIENT_USER }}
104103
mobify_api_key: ${{ secrets.MOBIFY_CLIENT_API_KEY }}
105104

106-
#TODO - change target to production once testing is done
107105
- name: Push Bundle to MRT (Demo Site)
108106
uses: "./.github/actions/push_to_mrt"
109107
with:

0 commit comments

Comments
 (0)