chore: Created automatic flatpak releases

This commit is contained in:
Mauro Balades
2024-08-04 20:40:28 +02:00
parent 84a5f05eb6
commit 26e158072e
3 changed files with 147 additions and 0 deletions

View File

@@ -355,3 +355,54 @@ jobs:
zen.installer-generic.exe
zen.macos-x64.dmg
zen.macos-aarch64.dmg
release-flatpak:
if: ${{ github.event.inputs.create_release == 'true' }}
permissions: write-all
name: Release Flatpak
needs: [release, linux, build-data]
runs-on: ubuntu-latest
steps:
- name: Update repo
uses: actions/checkout@v4
- name: Download linux generic build
uses: actions/download-artifact@v4
with:
name: zen.linux-generic.tar.bz2
- name: Clone flatpak repo
uses: actions/checkout@v4
with:
repository: flathub/io.github.zen_browser.zen
path: flatpak-repo
token: ${{ secrets.DEPLOY_KEY }}
- name: Download flatpak archive
run: |
wget https://github.com/zen-browser/flatpak/releases/latest/download/archive.tar -O archive.tar
- name: Prepare flatpak manifest
run: |
python3 ./scripts/prepare-flatpak-release.py ${{ needs.build-data.outputs.version }}
rm flatpak-repo/io.github.zen_browser.zen.yml
mv flatpak/io.github.zen_browser.zen.yml flatpak-repo/io.github.zen_browser.zen.yml
- name: Setup git
run: |
cd flatpak-repo
git config --global user.email "mauro-balades@users.noreply.github.com"
git config --global user.name "mauro-balades"
- name: Create flatpak pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.DEPLOY_KEY }}
commit-message: Update to version ${{ needs.build-data.outputs.version }}
title: Update to version ${{ needs.build-data.outputs.version }}
body: |
This PR updates the Zen Browser Flatpak package to version ${{ needs.build-data.outputs.version }}. @mauro-balades
branch: update-to-${{ needs.build-data.outputs.version }}
base: master