build docs on deploy
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
494d7f49c9
commit
361662b6cf
1 changed files with 30 additions and 2 deletions
|
@ -2,7 +2,6 @@ pipeline:
|
||||||
lint:
|
lint:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
|
||||||
- pull_request
|
- pull_request
|
||||||
image: node:16
|
image: node:16
|
||||||
commands:
|
commands:
|
||||||
|
@ -13,7 +12,6 @@ pipeline:
|
||||||
test:
|
test:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
|
||||||
- pull_request
|
- pull_request
|
||||||
image: node:16
|
image: node:16
|
||||||
commands:
|
commands:
|
||||||
|
@ -28,6 +26,7 @@ pipeline:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
|
- stable
|
||||||
image: node:16
|
image: node:16
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
- yarn
|
||||||
|
@ -39,6 +38,7 @@ pipeline:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
|
- stable
|
||||||
image: node:16
|
image: node:16
|
||||||
secrets:
|
secrets:
|
||||||
- SCW_ACCESS_KEY
|
- SCW_ACCESS_KEY
|
||||||
|
@ -52,3 +52,31 @@ pipeline:
|
||||||
- ./scaleway-cli object config install type=rclone
|
- ./scaleway-cli object config install type=rclone
|
||||||
- zip akkoma-fe.zip -r dist
|
- zip akkoma-fe.zip -r dist
|
||||||
- rclone copyto akkoma-fe.zip scaleway:akkoma-updates/frontend/akkoma-fe.zip
|
- rclone copyto akkoma-fe.zip scaleway:akkoma-updates/frontend/akkoma-fe.zip
|
||||||
|
|
||||||
|
docs:
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- develop
|
||||||
|
- stable
|
||||||
|
- stable-docs
|
||||||
|
environment:
|
||||||
|
CI: "true"
|
||||||
|
image: python:3.10-slim
|
||||||
|
secrets:
|
||||||
|
- SCW_ACCESS_KEY
|
||||||
|
- SCW_SECRET_KEY
|
||||||
|
- SCW_DEFAULT_ORGANIZATION_ID
|
||||||
|
commands:
|
||||||
|
- apt-get update && apt-get install -y rclone wget git zip
|
||||||
|
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
|
||||||
|
- mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
|
||||||
|
- chmod +x scaleway-cli
|
||||||
|
- ./scaleway-cli object config install type=rclone
|
||||||
|
- cd docs
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- mkdocs build
|
||||||
|
- zip -r docs.zip site/*
|
||||||
|
- cd site
|
||||||
|
- rclone copy . scaleway:akkoma-docs/frontend/$CI_COMMIT_BRANCH/
|
||||||
|
|
Loading…
Reference in a new issue