From 7f7b220771933aba42314c2357044cf06008fb74 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 22 Feb 2021 14:42:03 +0200 Subject: [PATCH] Build analysaattori in GHA --- .github/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a8862c..98613c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,26 @@ jobs: python -m pip install -r requirements.txt - name: Build run: make -j3 + - uses: actions/setup-node@v2 + with: + node-version: '12' + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - run: yarn + working-directory: analysaattori + - run: yarn build + working-directory: analysaattori + env: + GENERATE_SOURCEMAP: 'false' + - run: cp -a analysaattori/build ./out/analysaattori + - run: ls -laR out - name: Deploy uses: JamesIves/github-pages-deploy-action@4.0.0 with: