Added zipping and uploading of production builds

This extends the 'production build' workflow with uploading the final bundle as an artifact. The bundle is only uploaded on pushes to `master` and with Node.js 14.

Co-authored-by: David Mehren <git@herrmehren.de>

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
Erik Michelson 2020-11-18 00:12:25 +01:00 committed by David Mehren
parent 929d4af2b5
commit daf14a51e1
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -78,5 +78,11 @@ jobs:
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- run: yarn --frozen-lockfile --prefer-offline - run: yarn --frozen-lockfile --prefer-offline
- run: yarn run build - run: yarn run build
- uses: actions/upload-artifact@v2
if: github.ref == 'refs/heads/master' && matrix.node-version == '14.x'
with:
name: Prebuild with Node.js ${{ matrix.node-version }}
path: |
**
!.git
!node_modules