Update cooker.yml

This commit is contained in:
XargonWan 2022-04-05 21:53:10 +09:00 committed by GitHub
parent d5976bdcae
commit fbe2f5b04b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,17 +25,20 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# Runs a set of commands using the runners shell - name: Prepearing enviornment
- name: Build flatpak
run: | 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 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 --user --install --force-clean retrodeck-flatpak com.xargon.retrodeck.yml
sudo flatpak-builder --repo=local --force-clean localrepo 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 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 uses: ncipollo/release-action@v1
with: with:
tag: "${{ steps.version.outputs.version }}" tag: "${{ steps.version.outputs.version }}"