Build analysaattori in GHA

This commit is contained in:
Aarni Koskela
2021-02-22 14:42:03 +02:00
parent 114dc59db7
commit 7f7b220771

View File

@@ -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: