Skip to content

Commit ba9040d

Browse files
authored
Merge pull request #91 from Shopify/gg-deprecate-action
Add deprecation message
2 parents bd1cf89 + 8b2f681 commit ba9040d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Deploy
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- name: Setup node.js
1414
uses: actions/setup-node@v4
@@ -28,7 +28,7 @@ jobs:
2828
2929
- name: Cache node modules
3030
id: cache-npm
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
env:
3333
cache-name: cache-node-modules
3434
with:
@@ -53,7 +53,6 @@ jobs:
5353
oxygen_deployment_token: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN }}
5454
path: ./hydrogen-app
5555
build_command: "HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL yarn build"
56-
oxygen_health_check: true
5756

5857
- name: Output check
5958
run: |

action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ inputs:
1818
oxygen_deployment_token:
1919
description: The JWT deployment token
2020
required: true
21+
deprecationMessage: The shopify/oxygenctl-action is being deprecated and all merchants are encouraged to migrate to the Hydrogen CLI deploy command. To use the deploy command, upgrade your Hydrogen project to use Hydrogen CLI v7.0.0 or later. See our example GitHub workflow https://shopify.dev/docs/custom-storefronts/hydrogen/deployments/github#oxygen-github-action
2122
oxygen_worker_dir:
2223
description: The name of the directory containing the worker file
2324
default: dist/worker
@@ -73,7 +74,7 @@ runs:
7374
run: |
7475
echo "Deploying to Oxygen..."
7576
build_command_filtered=$(echo '${{ inputs.build_command }}' | sed 's/HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL //g')
76-
oxygen_command="npm exec --package=@shopify/oxygen-cli@4 -- oxygen-cli oxygen:deploy \
77+
oxygen_command="npm exec --package=@shopify/oxygen-cli@3 -- oxygen-cli oxygen:deploy \
7778
--path=${{ inputs.path }} \
7879
--assetsFolder=${{ inputs.oxygen_client_dir }} \
7980
--workerFolder=${{ inputs.oxygen_worker_dir }} \

0 commit comments

Comments
 (0)