]> Untitled Git - lemmy.git/blobdiff - .drone.yml
Make Note.context optional for pleroma compat (hack)
[lemmy.git] / .drone.yml
index 1602eac0f094b3c365f3e4bdc94de76fbd1060ab..e96fee7cf6d3c172d939acec4032b03eaa617807 100644 (file)
@@ -38,6 +38,12 @@ steps:
       - sudo apt-get -y install --no-install-recommends postgresql-client
       - cargo test --workspace --no-fail-fast
 
+  - name: check defaults.hjson updated
+    image: ekidd/rust-musl-builder:1.51.0
+    commands:
+      - ./scripts/update_config_defaults.sh config/defaults_current.hjson
+      - diff config/defaults.hjson config/defaults_current.hjson
+
   - name: cargo build
     image: ekidd/rust-musl-builder:1.51.0
     commands:
@@ -122,13 +128,13 @@ steps:
 
   # using https://github.com/pksunkara/cargo-workspaces
   - name: publish to crates.io
-    image: rust:1
+    image: rustlang/rust:nightly
     environment:
       CARGO_TOKEN:
         from_secret: cargo_api_token
     commands:
       - cargo install cargo-workspaces
-      - cp -r migrations crates/db_queries/
+      - cp -r migrations crates/db_schema/
       - cargo login "$CARGO_TOKEN"
       - cargo workspaces publish --from-git --allow-dirty --allow-branch "${DRONE_TAG}" --yes custom "${DRONE_TAG}"
     when: