live-translator-nodeapp/.gitlab-ci.yml

35 lines
818 B
YAML

# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:latest
stages:
- prepare
- package
cache:
paths:
- node_modules/
prepare:
stage: prepare
script:
- npm install
- npm audit
package:
stage: package
script:
- apt-get update
- apt-get install -y zstd
- npm -g i pkg
- pkg . --public
- zstd -19 live-translator-win.exe -o live-translator-win.exe.zst
- zstd -19 live-translator-linux -o live-translator-linux.zst
- zstd -19 live-translator-macos -o live-translator-macos.zst
artifacts:
paths:
- live-translator-win.exe.zst
- live-translator-linux.zst
- live-translator-macos.zst