ci(docs): fix i18n-filter and build outDir path

This commit is contained in:
Yassine Doghri 2024-05-24 10:40:53 +00:00
parent b345c7ecd2
commit 2ca9418138
2 changed files with 11 additions and 15 deletions

View File

@ -11,7 +11,7 @@ stages:
- pnpm config set store-dir .pnpm-store - pnpm config set store-dir .pnpm-store
- cd docs - cd docs
- chmod +x ./scripts/i18n-filter.sh - chmod +x ./scripts/i18n-filter.sh
- ./scripts/i18n-filter.sh src - ./scripts/i18n-filter.sh src/content/docs
- pnpm install - pnpm install
cache: cache:
@ -40,7 +40,7 @@ build-production:
name: production name: production
url: https://docs.castopod.org/ url: https://docs.castopod.org/
script: script:
- pnpm run build --outDir=docs/dist/$CI_COMMIT_REF_SLUG --base=$CI_COMMIT_REF_SLUG - pnpm run build --outDir=./dist/$CI_COMMIT_REF_SLUG --base=$CI_COMMIT_REF_SLUG
artifacts: artifacts:
paths: paths:
- docs/dist/$CI_COMMIT_REF_SLUG - docs/dist/$CI_COMMIT_REF_SLUG

View File

@ -1,13 +1,9 @@
assets en
styles ca
env.d.ts de
content/config.ts es
content/docs/en fr
content/docs/ca nn-no
content/docs/de pt-br
content/docs/es sr-latn
content/docs/fr zh-hans
content/docs/nn-no
content/docs/pt-br
content/docs/sr-latn
content/docs/zh-hans