Skip to content
Snippets Groups Projects
Verified Commit 203a4cfc authored by Geoffrey Arthaud's avatar Geoffrey Arthaud
Browse files

Correct package conf

parent 6c93291a
No related merge requests found
...@@ -11,3 +11,6 @@ dsfr/utility/icons ...@@ -11,3 +11,6 @@ dsfr/utility/icons
node_modules node_modules
site site
.idea .idea
public/
.DS_Store
*
!.gitignore
...@@ -16,22 +16,21 @@ build_and_deploy_gitlab: ...@@ -16,22 +16,21 @@ build_and_deploy_gitlab:
- npm ci --cache .npm --prefer-offline - npm ci --cache .npm --prefer-offline
- pipenv run npm run build:prod - pipenv run npm run build:prod
- pipenv run python -m build - pipenv run python -m build
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token pipenv run python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token pipenv run python -m twine upload --skip-existing --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
cache: cache:
paths: paths:
- .npm/ - .npm/
- .pipenv/ - .pipenv/
rules:
- if: ($CI_COMMIT_BRANCH == "main")
deploy_exemple_site: deploy_exemple_site:
image: python:3.11.6-bookworm image: python:3.11.6-bookworm
stage: package_test stage: package_test
script: script:
- git clone --no-tags --single-branch --depth=1 ${CI_SERVER_URL}/pub/numeco/mkdocs-dsfr-exemple.git - git clone --branch develop --single-branch --depth=1 ${CI_SERVER_URL}/pub/numeco/mkdocs-dsfr-exemple.git
- cd mkdocs-dsfr-exemple - cd mkdocs-dsfr-exemple
- pip install mkdocs-dsfr --index-url https://gitlab-forge.din.developpement-durable.gouv.fr/api/v4/projects/20363/packages/pypi/simple - pip install pipenv
- mkdocs build --strict --verbose -d ../public - pipenv install --index gitlab mkdocs-dsfr
- pipenv run mkdocs build --strict --verbose -d ../public
artifacts: artifacts:
paths: paths:
- public - public
\ No newline at end of file
recursive-include dsfr *.ico *.js *.css *.png *.html *.eot *.svg *.ttf *.woff *.webmanifest *.map *.woff2 recursive-include dsfr *.ico *.js *.css *.png *.html *.eot *.svg *.ttf *.woff *.webmanifest *.map *.woff2 *.yml
recursive-exclude * __pycache__ recursive-exclude * __pycache__
recursive-exclude * *.py[co] recursive-exclude * *.py[co]
prune mkdocs prune mkdocs
\ No newline at end of file
recursive-include dsfr *.ico *.js *.css *.png *.html *.eot *.svg *.ttf *.woff *.webmanifest *.map *.woff2 recursive-include dsfr *.ico *.js *.css *.png *.html *.eot *.svg *.ttf *.woff *.webmanifest *.map *.woff2 *.yml
recursive-exclude * __pycache__ recursive-exclude * __pycache__
recursive-exclude * *.py[co] recursive-exclude * *.py[co]
prune mkdocs prune mkdocs
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment