File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
13+ env :
14+ NODE_ENV : production
1315
1416 steps :
1517 - name : Checking out for ${{ github.ref }}
7577 # run: |
7678 # sleep 15
7779 # curl -s ${{ steps.deploy.outputs.webapp-url }}
80+
81+ - id : compute-hash
82+ name : Compute build metadata
83+ run : |
84+ echo "::set-output name=sha384-es5::`cat packages/bundle/dist/webchat-es5.js | openssl dgst -sha384 -binary | openssl base64 -A`"
85+ echo "::set-output name=sha384-full::`cat packages/bundle/dist/webchat.js | openssl dgst -sha384 -binary | openssl base64 -A`"
86+ echo "::set-output name=sha384-minimal::`cat packages/bundle/dist/webchat-minimal.js | openssl dgst -sha384 -binary | openssl base64 -A`"
87+ echo "::set-output name=package-version::`tar -xOzf packages/bundle/webchat-*.tgz package/package.json | jq -r '.version'`"
88+
89+ - name : Display build metadata
90+ run : |
91+ echo sha384-es5=${{ steps.compute-hash.outputs.sha384-es5 }}
92+ echo sha384-full=${{ steps.compute-hash.outputs.sha384-full }}
93+ echo sha384-minimal=${{ steps.compute-hash.outputs.sha384-minimal }}
94+ echo package-version=${{ steps.compute-hash.outputs.package-version }}
You can’t perform that action at this time.
0 commit comments