dao-governance-framework/.gitlab-ci.yml

25 lines
682 B
YAML

pages:
rules:
- if: '$CI_COMMIT_REF_NAME == "main"'
artifacts:
paths:
- public
script:
- mkdir public
- cp -r forum-network/src/* public/
pages-dev:
rules:
- if: '$CI_COMMIT_REF_NAME == "dev"'
artifacts:
paths:
- public
script:
- mkdir public
- cp -r forum-network/src/* public/
environment:
name: Develop
url: "${CI_SERVER_PROTOCOL}://${CI_PROJECT_ROOT_NAMESPACE}.${CI_PAGES_DOMAIN}/-/${CI_PROJECT_PATH#"${CI_PROJECT_ROOT_NAMESPACE}/"}/-/jobs/$CI_JOB_ID/artifacts/public/index.html"
variables:
PUBLIC_URL: "/-/${CI_PROJECT_PATH#"${CI_PROJECT_ROOT_NAMESPACE}/"}/-/jobs/$CI_JOB_ID/artifacts/public/index.html"