--- # see https://docs.drone.io/pipeline/configuration/ kind: pipeline name: build and upload the paper volumes: - name: nix_store host: path: /var/lib/drone/nix node: nix: 1 environment: NIX_PATH: nixpkgs=channel:nixos-unstable steps: - name: build image: nixpkgs/nix:nixos-21.05 volumes: - name: nix_store path: /nix commands: - nix-shell --run "make paper" - name: upload image: plugins/s3 settings: bucket: XXXXXXX access_key: from_secret: aws_access_key_id secret_key: from_secret: aws_secret_access_key source: paper/build/main.pdf strip_prefix: paper/build/ target: / path_style: true endpoint: XXXXXXXX region: garage trigger: event: - push branch: - main