diff --git a/.github/workflows/cooker.yml b/.github/workflows/cooker.yml index f5d6ee31..3f8b5cb6 100644 --- a/.github/workflows/cooker.yml +++ b/.github/workflows/cooker.yml @@ -25,17 +25,20 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - # Runs a set of commands using the runners shell - - name: Build flatpak + - name: Prepearing enviornment run: | - sudo apt install flatpak flatpak-builder + sudo apt install flatpak flatpak-builder 7z sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 + sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 7z + + # Runs a set of commands using the runners shell + - name: Building flatpak + run: | sudo flatpak-builder --user --install --force-clean retrodeck-flatpak com.xargon.retrodeck.yml sudo flatpak-builder --repo=local --force-clean localrepo com.xargon.retrodeck.yml sudo flatpak build-bundle local RetroDECK.flatpak com.xargon.retrodeck - - name: Create pre-release as draft at first to hide during uploads + - name: Publish the flatpak in a new cooker release uses: ncipollo/release-action@v1 with: tag: "${{ steps.version.outputs.version }}"