From c5a38f1176c08dc7f7773b05cf49642ea239a7bb Mon Sep 17 00:00:00 2001 From: Eric Tuvesson Date: Tue, 10 Oct 2023 10:50:18 +0200 Subject: [PATCH] feat: GH Workflow, upload artifact (#38) * feat: GH Workflow, upload artifact * fix: GH Action, only upload on main branch --- .github/workflows/test-build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 9e9c0ec..29840f8 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -14,12 +14,18 @@ jobs: uses: actions/checkout@v3 - name: Setup node env 🏗 - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 - name: Install dependencies 🏗 run: npm install - - name: Build noodl + - name: Build noodl-docs run: npm run build + + - if: github.ref == 'refs/heads/main' + uses: actions/upload-artifact@v3 + with: + name: noodl-docs + path: build/