@@ -43,43 +43,23 @@ outputs:
43
43
runs :
44
44
using : ' composite'
45
45
steps :
46
- - name : Check Oxygen version
47
- shell : ' bash'
48
- id : check_version
49
- run : |
50
- TOKEN="${{ inputs.oxygen_deployment_token }}"
51
- echo "::add-mask::$TOKEN"
52
-
53
- if [[ "${TOKEN}" == *":"* ]]; then
54
- echo "Multi token"
55
- IFS=':' read -ra token_list <<< "${TOKEN}"
56
- token=${token_list[1]}
57
- echo "::add-mask::$token"
58
- echo "token=$token" >> $GITHUB_OUTPUT
59
- else
60
- if [[ "${TOKEN}" =~ ^[A-Za-z0-9+/]+[=]{0,2}$ ]]; then
61
- echo "Token is in V2 format"
62
- echo "token=${TOKEN}" >> $GITHUB_OUTPUT
63
- else
64
- echo "Your repository is out of date, please disconnect and reconnect your storefront on Shopify"
65
- exit 1
66
- fi
67
- fi
68
-
69
46
- name : Build and Publish to Oxygen
70
47
shell : ' bash'
71
48
id : ' oxygen-cli-action'
72
49
env :
73
50
NODE_ENV : production
51
+ OXYGEN_DEPLOYMENT_TOKEN : inputs.oxygen_deployment_token
74
52
run : |
75
53
echo "Deploying to Oxygen..."
54
+ TOKEN="${{ inputs.oxygen_deployment_token }}"
55
+ echo "::add-mask::$TOKEN"
56
+
76
57
build_command_filtered=$(echo '${{ inputs.build_command }}' | sed 's/HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL //g')
77
58
oxygen_command="npm exec --package=@shopify/[email protected] -- oxygen-cli oxygen:deploy \
78
59
--path=${{ inputs.path }} \
79
60
--assetsFolder=${{ inputs.oxygen_client_dir }} \
80
61
--workerFolder=${{ inputs.oxygen_worker_dir }} \
81
62
--verificationMaxDuration=${{ inputs.oxygen_deployment_verification_max_duration }} \
82
- --token=${{ steps.check_version.outputs.token }}"
83
63
if [ "${{ inputs.oxygen_deployment_verification }}" == "false" ]; then
84
64
oxygen_command+=" --skipVerification"
85
65
fi
0 commit comments