From 0c66fcc046bbf163a885500a5976c63ffbdd202a Mon Sep 17 00:00:00 2001 From: lleyton Date: Thu, 6 Jul 2023 01:38:31 +0700 Subject: [PATCH] Use reusable Flatpak workflow --- .github/workflows/deploy.yml | 40 ++++++------------------------------ 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index daa7700..ed4bc12 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,37 +4,9 @@ on: push: branches: [main] jobs: - flatpak: - strategy: - matrix: - arch: [x86_64, aarch64] - name: "Flatpak" - runs-on: ubuntu-latest - container: - image: bilelmoussaoui/flatpak-github-actions:gnome-43 - options: --privileged - steps: - - uses: actions/checkout@v2 - - name: Install deps - run: | - dnf -y install docker - - name: Set up QEMU - id: qemu - uses: docker/setup-qemu-action@v1 - with: - platforms: arm64 - - uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4 - name: "Build" - with: - bundle: modi.flatpak - manifest-path: com.fyralabs.Enigma.json - cache-key: flatpak-builder-${{ github.sha }} - repository-name: catalogue - repository-url: https://repo.tauos.co/catalogue.flatpakrepo - arch: ${{ matrix.arch }} - - uses: bilelmoussaoui/flatpak-github-actions/flat-manager@v3 - name: "Deploy" - with: - repository: stable - flat-manager-url: https://catalogue.tauos.co - token: ${{ secrets.FLATPAK_REPO_TOKEN }} + deploy: + uses: tau-OS/github-actions/.github/workflows/deploy-flatpak.yml@main + with: + manifestPath: com.fyralabs.Enigma.json + secrets: + managerToken: ${{ secrets.FLATPAK_REPO_TOKEN }}