[FIX] Catch error if no anticheat json file so launching doesn't fail… #4238
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main, stable] | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Build Flatpak Files' | |
required: false | |
name: Flatpak-CI | |
jobs: | |
flatpak: | |
name: 'Flatpak Build' | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48 | |
options: --privileged | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-deps | |
- name: Build artifacts. | |
run: pnpm dist:linux appimage --publish=never | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
- name: Prepare Flatpak | |
run: pnpm flatpak:prepare | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
- name: Build Flatpak | |
uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | |
with: | |
bundle: heroicgameslauncher.flatpak | |
manifest-path: flatpak-build/com.heroicgameslauncher.hgl.yml | |
cache-key: flatpak-builder-${{ github.sha }} |