Skip to content

Commit

Permalink
fixing version.json quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Nov 20, 2023
1 parent c7fada4 commit 83b39de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
- run: echo "BRANCH_NAME_URL=$(echo ${{ env.BRANCH_NAME }} | tr / - | tr _ -)" >> $GITHUB_ENV
- name: Get build info
run: echo "BUILD_INFO={'tag':'$(git describe --always --tags)', 'url':'https://github.com/${{github.repository}}/commit/$(git rev-parse HEAD)', 'timestamp':'$(date)', 'branch':'${{github.repository}}/${{env.BRANCH_NAME}}'}" >> $GITHUB_ENV
run: echo 'BUILD_INFO={"tag":"$(git describe --always --tags)", "url":"https://github.com/${{github.repository}}/commit/$(git rev-parse HEAD)", "timestamp":"$(date)", "branch":"${{github.repository}}/${{env.BRANCH_NAME}}"}' >> $GITHUB_ENV
shell: bash
- name: Write build info
run: echo ${{ env.BUILD_INFO }} >> src/version.json
Expand Down
3 changes: 0 additions & 3 deletions config/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
if (this.define.NEUROGLANCER_BUILD_INFO) {
await fs.promises.writeFile(path.resolve(this.outDir, 'version.json'), this.define.NEUROGLANCER_BUILD_INFO);
}
if (this.define.STATE_SERVERS) {
await fs.promises.writeFile(path.resolve(this.outDir, 'state_servers.json'), this.define.STATE_SERVERS);
}
}

getBaseEsbuildConfig() {
Expand Down

0 comments on commit 83b39de

Please sign in to comment.