Skip to content

Build Flatpak and Publish Release #8

Build Flatpak and Publish Release

Build Flatpak and Publish Release #8

Workflow file for this run

name: Build Flatpak and Publish Release
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build Flatpak
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Python wheels
run: |
mkdir -p ModManagerGUI/wheels
pip download \
--only-binary=:all: \
--python-version 311 \
--implementation cp \
--abi cp311 \
--platform manylinux2014_x86_64 \
-r ModManagerGUI/requirements.txt \
-d ModManagerGUI/wheels
- name: Build Flatpak bundle
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
manifest-path: eu.samk0.WoTModAssistant.yaml
bundle: WoTModAssistant.flatpak
cache-key: flatpak-${{ github.sha }}
upload-artifact: false
- name: Upload bundle artifact
uses: actions/upload-artifact@v4
with:
name: flatpak-bundle
path: WoTModAssistant.flatpak
release:
name: Publish Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download bundle
uses: actions/download-artifact@v4
with:
name: flatpak-bundle
- name: Create Release and Upload Asset
uses: softprops/action-gh-release@v2
with:
files: WoTModAssistant.flatpak
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}