Merge remote-tracking branch 'origin/main' #27
Workflow file for this run
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
| 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 |