-deploy only on master commit

This commit is contained in:
Mergul 2021-03-02 21:23:06 +01:00
parent 27154c809e
commit c69d58ed69

View file

@ -90,12 +90,14 @@ emscripten:
pages:
stage: deploy
image: frolvlad/alpine-glibc
dependencies:
- build_emscripten
script:
- mkdir public
- cp -r wasm/* public/
- cp -r build/public/* public/
rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: '$CI_COMMIT_BRANCH == "master"'
when: always
artifacts:
expire_in: 1h