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
16 changes: 14 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,22 @@ jobs:
sudo apt-get install -y flatpak flatpak-builder
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

- name: Import Flatpak signing key
env:
FLATPAK_GPG_PRIVATE_KEY: ${{ secrets.FLATPAK_GPG_PRIVATE_KEY }}
run: |
export GNUPGHOME="$RUNNER_TEMP/gnupg"
mkdir -m 700 "$GNUPGHOME"
echo "$FLATPAK_GPG_PRIVATE_KEY" | gpg --batch --import
KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^fpr/ {print $10; exit}')
echo "GNUPGHOME=$GNUPGHOME" >> "$GITHUB_ENV"
echo "KEY_ID=$KEY_ID" >> "$GITHUB_ENV"
echo "GPGKey=$(gpg --export "$KEY_ID" | base64 -w0)" >> public/matcha.flatpakref

- name: Build Flatpak Repo
run: |
flatpak-builder --user --install-deps-from=flathub --repo=public/repo --force-clean build-dir com.floatpane.matcha.yaml
flatpak build-update-repo --generate-static-deltas public/repo
flatpak-builder --user --install-deps-from=flathub --gpg-sign="$KEY_ID" --gpg-homedir="$GNUPGHOME" --repo=public/repo --force-clean build-dir com.floatpane.matcha.yaml
flatpak build-update-repo --gpg-sign="$KEY_ID" --gpg-homedir="$GNUPGHOME" --generate-static-deltas public/repo

- name: Setup Pages
uses: actions/configure-pages@v6
Expand Down
1 change: 1 addition & 0 deletions public/matcha.flatpakref
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Title=Matcha
IsRuntime=False
Url=https://matcha.email/repo/
SuggestRemoteName=matcha
RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo
Loading