Add version string

Also, add gitlab CI file.
This commit is contained in:
N-Pex 2020-11-09 15:19:36 +01:00
parent c88931e00c
commit d6381f60c7
5 changed files with 62 additions and 12 deletions

18
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,18 @@
image: alpine:latest
pages: # the job must be named pages
image: node:latest
stage: deploy
before_script:
# - ./update_version.sh
- echo $CI_COMMIT_TIMESTAMP $CI_COMMIT_SHORT_SHA > src/assets/version.txt
- npm install -g workbox-cli
script:
- npm ci
- npm run build
- mv public public-vue # GitLab Pages hooks on the public folder
- mv dist public # rename the dist folder (result of npm run build)
artifacts:
paths:
- public # artifact path must be /public for GitLab Pages to pick it up
only:
- main