32 lines
662 B
YAML
32 lines
662 B
YAML
steps:
|
|
setup_forgeo:
|
|
image: python
|
|
commands:
|
|
- pip install requests
|
|
- make env.config
|
|
|
|
build:
|
|
image: node:18
|
|
commands:
|
|
- corepack enable
|
|
- corepack prepare pnpm@latest-8 --activate
|
|
- pnpm install
|
|
- pnpm run lint
|
|
- pnpm run test
|
|
- pnpm run build
|
|
- pnpm run doc
|
|
|
|
deploy_docs:
|
|
image: python
|
|
when:
|
|
event: [push, pull_request, tag, deployment]
|
|
commands:
|
|
- make ci-deploy
|
|
secrets: [GITEA_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET]
|
|
|
|
services:
|
|
forgejo:
|
|
image: codeberg.org/forgejo/forgejo:1.20.1-0
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|