summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Michelson2020-11-18 00:12:25 +0100
committerDavid Mehren2020-11-25 22:27:01 +0100
commitdaf14a51e150eab35c99975e41e43d89da701906 (patch)
treecc523985365ca3dc9867c431b74dc3faeaa335e0
parent929d4af2b5f9564c16074f4425a1ff693300f04e (diff)
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>
-rw-r--r--.github/workflows/node.js.yml10
1 files changed, 8 insertions, 2 deletions
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