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
|
2023-02-09 13:52:16 -06:00
|
|
|
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"'
|
2023-02-09 13:52:16 -06:00
|
|
|
script:
|
|
|
|
- mkdir public
|
|
|
|
- cp -r forum-network/src/* public/
|
2023-02-09 14:15:16 -06:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2023-02-09 13:52:16 -06:00
|
|
|
environment:
|
2023-02-09 14:15:16 -06:00
|
|
|
name: "${CI_COMMIT_BRANCH} ${CI_JOB_NAME}"
|
2023-02-09 13:52:16 -06:00
|
|
|
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"
|