-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
31 lines (28 loc) · 959 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include:
- project: 'uniprot/front-end/front-end-deploy'
file: '.gitlab-ci-template.yml'
build_static_assets:
script:
- yarn
- yarn build
- mv storybook-static build
build_docker_image:
only:
- never
deploy:
only:
refs:
- main
script:
- apk add --no-cache git
- git config --global credential.helper cache
- git config --global user.email "[email protected]"
- git config --global user.name "UniProt CI"
- git clone --single-branch --branch gh-pages https://uniprotci:${GITHUB_PAT_REPO}@github.com/ebi-uniprot/franklin-sites.git
- rm -r franklin-sites/*
- cp -r build/* franklin-sites
- cd franklin-sites
- git add -A
- test -z "$(git status --porcelain)" && exit 0 # Don't commit and push if no changes
- git commit -m "Deploy gitlab.ebi.ac.uk/uniprot/uniprot-website/franklin-sites to github.com/ebi-uniprot/franklin-sites.git:gh-pages"
- git push origin gh-pages