diff --git a/.github/workflows/flatpak-repo.yml b/.github/workflows/flatpak-repo.yml index 1dec206..29791c9 100644 --- a/.github/workflows/flatpak-repo.yml +++ b/.github/workflows/flatpak-repo.yml @@ -231,7 +231,6 @@ jobs: # Add to git git add "$APPDATA" - # Add a commit step for the appdata changes - name: Commit appdata changes run: | cd flatpak-repo @@ -242,3 +241,21 @@ jobs: echo "::error::Failed to push appdata.xml to gh-pages branch" exit 1 fi + + - name: Export Public Key + run: | + cd flatpak-repo + # Export the public key in ASCII armor format + gpg --armor --export ${{ secrets.GPG_KEY_ID }} > futr.gpg + git add futr.gpg + + - name: Commit GPG key + run: | + cd flatpak-repo + if ! git commit -m "Update GPG public key"; then + echo "::warning::No changes to GPG key" + fi + if ! git push origin gh-pages; then + echo "::error::Failed to push GPG key to gh-pages branch" + exit 1 + fi diff --git a/README.md b/README.md index db6a227..a37feb6 100755 --- a/README.md +++ b/README.md @@ -10,12 +10,22 @@ The name 'futr' was chosen out of respect for the honorable Canadians. Install via Flatpak: +#### Stable Release + +First, import the repository signing key: + ```bash -flatpak remote-add --if-not-exists futr-stable https://flatpak.futrnostr.com/repo-stable -flatpak install com.futrnostr.futr +curl -fsSL https://flatpak.futrnostr.com/futr.gpg | gpg --import +``` + +Then add the repository and install: + +```bash +flatpak remote-add --if-not-exists futr-stable https://flatpak.futrnostr.com/futr-stable +flatpak install futr-stable com.futrnostr.futr ``` -Or for the continuous builds: +#### Development Builds ```bash flatpak remote-add --if-not-exists futr-continuous https://flatpak.futrnostr.com/repo-continuous