package-ecosystems/.drone.yml

24 lines
626 B
YAML

kind: pipeline
name: default
token:
from_secret: GITEA_TOKEN
steps:
- name: build
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands:
- rm -f *.pdf *.epub
- nix develop --command scripts/build.sh
- nix develop --command scripts/test.sh
- name: release
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
commands:
- rm -f *.pdf *.epub
- nix develop --command scripts/release.sh
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
when:
branch:
- main