Skip to content

Commit

Permalink
github: workflow: ci: Add flatpak deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Oct 18, 2023
1 parent c475e8b commit 2636146
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,50 @@ jobs:
prerelease: true
file_glob: true

deploy-flatpak:
needs: test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install flatpak
run: |
sudo apt install -y flatpak flatpak-builder
sudo flatpak remote-add --system flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user flathub https://flathub.org/repo/flathub.flatpakrepo || true
- name: Build electron
run: |
bun install --frozen-lockfile
bun run build
env DEBUG="@malept/flatpak-bundler" bun deploy:flatpak
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: cockpit-flatpak
path: dist/cockpit*.flatpak
if-no-files-found: error

- name: Upload Release
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/') && success()
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/cockpit*.flatpak
tag: ${{ github.ref }}
overwrite: true
prerelease: true
file_glob: true

deploy-blueos-extension:
needs: test
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2636146

Please sign in to comment.