From daf14a51e150eab35c99975e41e43d89da701906 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Wed, 18 Nov 2020 00:12:25 +0100 Subject: 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 Signed-off-by: Erik Michelson Signed-off-by: David Mehren --- .github/workflows/node.js.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1d7b59d5..bff19dad 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -78,5 +78,11 @@ jobs: ${{ runner.os }}-yarn- - run: yarn --frozen-lockfile --prefer-offline - 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 -- cgit v1.2.3