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

31 lines
708 B
YAML
Raw Normal View History

2023-02-09 14:15:16 -06:00
workflow:
rules:
- if: $CI_COMMIT_BRANCH
2023-01-26 11:07:25 -06:00
pages:
2023-02-09 14:15:16 -06:00
stage: deploy
rules:
2023-02-09 14:15:16 -06:00
- if: $CI_COMMIT_BRANCH == "main"
2023-01-26 11:07:25 -06:00
script:
- mkdir public
- cp -r forum-network/src/* public/
artifacts:
paths:
- public
2023-02-09 14:15:16 -06:00
artifacts:
stage: deploy
rules:
- if: '$CI_COMMIT_BRANCH != "main"'
script:
- mkdir public
- cp -r forum-network/src/* public/
2023-02-09 14:15:16 -06:00
artifacts:
paths:
- public
environment:
2023-02-09 14:18:35 -06:00
name: "$CI_COMMIT_BRANCH $CI_JOB_NAME"
2023-02-09 14:49:50 -06:00
url: "$CI_SERVER_PROTOCOL://$CI_PROJECT_ROOT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/index.html"
variables:
2023-02-09 14:49:50 -06:00
PUBLIC_URL: "/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/index.html"