diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 63694c61..160da4da 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,7 +31,9 @@ jobs: - name: Build run: | npm install - npm run build -- --env.mcdata_hash='${{ fromJson(steps.get_mcdata_hash.outputs.data).commit.sha }}' --env.vanilla_datapack_summary_hash='${{ fromJson(steps.get_vanilla_datapack_summary_hash.outputs.data).commit.sha }}' + export mcdata_hash="'${{ fromJson(steps.get_mcdata_hash.outputs.data).commit.sha }}'" + export vanilla_datapack_summary_hash="'${{ fromJson(steps.get_vanilla_datapack_summary_hash.outputs.data).commit.sha }}'" + npm run build - name: Deploy uses: JamesIves/github-pages-deploy-action@releases/v3 diff --git a/vite.config.js b/vite.config.js index 6d5cecc1..db0fd5db 100644 --- a/vite.config.js +++ b/vite.config.js @@ -26,8 +26,8 @@ export default defineConfig({ stringify: true, }, define: { - __MCDATA_MASTER_HASH__: env ? env.mcdata_hash : '', - __VANILLA_DATAPACK_SUMMARY_HASH__: env ? env.vanilla_datapack_summary_hash : '', + __MCDATA_MASTER_HASH__: env.mcdata_hash, + __VANILLA_DATAPACK_SUMMARY_HASH__: env.vanilla_datapack_summary_hash, }, plugins: [preact()], })