Skip to content

Commit

Permalink
Gitlab Pages
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Engelhardt <[email protected]>
  • Loading branch information
antonengelhardt committed Jul 4, 2023
1 parent 1ee2ce6 commit c6c28f3
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ stages:
- test
- build
- documentation
- deploy-docs

cache:
paths:
Expand All @@ -29,13 +30,15 @@ build:
- target/wasm32-wasi/release/wasm_oidc_plugin.wasm
expire_in: 1 week

documentation:
only:
- main
stage: documentation
pages:
cache: {}
stage: deploy-docs
script:
- cargo doc --document-private-items
- cargo doc --document-private-items --no-deps
- echo "<meta http-equiv=refresh content=0;url=wasm_oidc_plugin/index.html>" > target/doc/index.html
- mv target/doc public
artifacts:
paths:
- target/doc
expire_in: 1 week
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

0 comments on commit c6c28f3

Please sign in to comment.