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 "uniprotci@gmail.com" - 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