Commit 4166ecc7 authored by Timotej Leginus's avatar Timotej Leginus
Browse files

added a gitlab pages pipeline

parent 29ad6e24
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+28 −0
Original line number Diff line number Diff line
variables:
  # 45831 is the WASM fork of the tiny toolchain
  WASM_ARTIFACT_URL: https://gitlab.fi.muni.cz/api/v4/projects/45831/jobs/artifacts/master/download?job=build-emscripten

stages:
  - build
  - deploy

build:
  image: "node:20-alpine"
  stage: build
  tags:
    - shared-fi
  script:
    - wget -qO /tmp/artifacts.zip "$WASM_ARTIFACT_URL" 
    - unzip -d ./public /tmp/artifacts.zip
    - npm install
    - npm run release
    - ls -hal
  artifacts:
    paths:
      - public
    expire_in: 1 day
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_MERGE_REQUEST_ID
  pages:
    publish: release