Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/zapstore-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Publish to Zapstore

on:
workflow_run:
workflows: ["Release"]
types: [completed]

permissions:
contents: read

jobs:
publish:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
zapstore.yaml
frontend/src-tauri/icons/icon.png

- name: Download APK from release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ github.event.workflow_run.head_branch }}
run: |
echo "Downloading APK from release $RELEASE_TAG"
gh release download "$RELEASE_TAG" \
--pattern "app-universal-release.apk" \
--dir .

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"

- name: Install zsp
run: |
go install "github.com/zapstore/zsp@v0.3.3"
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"

- name: Publish to Zapstore
env:
SIGN_WITH: ${{ secrets.ZAPSTORE_SIGN_WITH }}
COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
run: |
if [ -z "${SIGN_WITH}" ]; then
echo "Missing required secret: ZAPSTORE_SIGN_WITH" >&2
exit 1
fi

zsp publish \
-y \
--skip-preview \
--commit "$COMMIT_SHA" \
zapstore.yaml
24 changes: 24 additions & 0 deletions zapstore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repository: https://github.com/OpenSecretCloud/Maple

release_source: ./app-universal-release.apk

name: Maple
summary: Private AI Chat
description: |
Maple is a private AI chat app by OpenSecret.

Learn more at https://trymaple.ai

website: https://trymaple.ai
license: MIT

tags:
- ai
- chat
- privacy

icon: ./frontend/src-tauri/icons/icon.png

metadata_sources:
- github
- playstore
Loading