mirror of
https://github.com/koodiklinikka/palkkakysely.git
synced 2026-01-26 11:23:59 +00:00
Build analysaattori in GHA
This commit is contained in:
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user