From 767cbaeb713681ba41f5f6d261d357343453e686 Mon Sep 17 00:00:00 2001 From: Chris Jordan Date: Wed, 16 Aug 2023 09:35:23 -0400 Subject: [PATCH] trying to get version.json working --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f08b668dd..1e4bcd2fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,12 @@ jobs: - run: npm install - name: Typecheck with TypeScript run: npm run typecheck + - name: Get build info + run: | + build_info="{'tag':'$(git describe --always --tags)', 'url':'https://github.com/${{github.repository}}/commit/$(git rev-parse HEAD)', 'timestamp':'$(date)'}" + echo build_info + echo build_info > src/version.json + shell: bash - name: Build client bundles run: node ./config/esbuild-cli.js --config=min --no-typecheck --define STATE_SERVERS=$(cat config/state_servers.json | tr -d " \t\n\r") - run: cp -r ./dist/min appengine/frontend/static/