Add Zapstore publishing to CI pipeline

This commit is contained in:
Alex Gleason
2026-03-14 22:00:08 -05:00
parent 5a28692e55
commit 1b77712e72
2 changed files with 42 additions and 0 deletions
+16
View File
@@ -14,6 +14,7 @@ stages:
- deploy
- build
- release
- publish
test:
stage: test
@@ -149,3 +150,18 @@ release:
- name: "Ditto-${CI_COMMIT_TAG}.apk"
url: "${CI_PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_TAG}/raw/artifacts/Ditto-${CI_COMMIT_TAG}.apk?job=build-apk"
link_type: package
publish-zapstore:
stage: publish
image: golang:1.24
needs:
- build-apk
rules:
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+/
variables:
SIGN_WITH: $ZAPSTORE_BUNKER_URL
script:
- go install github.com/zapstore/zsp@latest
- APK_PATH="artifacts/Ditto-${CI_COMMIT_TAG}.apk"
- 'sed -i "2i release_source: ./${APK_PATH}" zapstore.yaml'
- zsp publish -y --skip-metadata --skip-preview zapstore.yaml
+26
View File
@@ -0,0 +1,26 @@
repository: https://gitlab.com/soapbox-pub/ditto
name: Ditto
summary: A Nostr client for Android
tags:
- nostr
- social
- messaging
icon: ./public/logo.png
metadata_sources:
- gitlab
supported_nips:
- "01"
- "05"
- "07"
- "10"
- "19"
- "25"
- "46"
- "50"
- "57"
- "65"