Skip to content

Update installation path for flatpak.xsh #23

Update installation path for flatpak.xsh

Update installation path for flatpak.xsh #23

Workflow file for this run

name: Build & Upload Flatpak
on:
push:
release:
types: [created]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq flatpak flatpak-builder
- name: Install build script dependencies
run: pip install .
- name: Set up Flathub & runtimes
run: |
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user -y flathub org.freedesktop.Platform/x86_64/24.08
flatpak install --user -y flathub org.freedesktop.Sdk/x86_64/24.08
- name: Build xonsh.flatpak
run: xonsh build.xsh --no-deps
- name: Upload to release
if: github.event_name == 'release'
run: gh release upload "${{ github.event.release.tag_name }}" xonsh.flatpak --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact (manual run)
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: xonsh-flatpak
path: xonsh.flatpak