mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-12-06 04:43:46 +00:00
80 lines
1.7 KiB
YAML
80 lines
1.7 KiB
YAML
name: Build AppImage
|
|
|
|
on:
|
|
push:
|
|
branches: [all]
|
|
paths:
|
|
- documents/*
|
|
- icons/*
|
|
- lang/*
|
|
- locale/*
|
|
- public/*
|
|
- scripts/*
|
|
- templates/*
|
|
- AppRun
|
|
- dh
|
|
- dh.desktop
|
|
- dh.conf
|
|
- generate
|
|
- lib.sh
|
|
- make-appimage.sh
|
|
- qget
|
|
- quickemu
|
|
#- q
|
|
#- qrun
|
|
#- quickfzf
|
|
#- quickget
|
|
#- quickreport
|
|
#- quicktest
|
|
#- quicktui
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build AppImage (${{ matrix.arch }})"
|
|
runs-on: ${{ matrix.runs-on }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- runs-on: ubuntu-latest
|
|
arch: x86_64
|
|
container: ghcr.io/pkgforge-dev/archlinux:latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Prepare container
|
|
uses: pkgforge-dev/anylinux-setup-action@v6
|
|
|
|
- name: Install dependencies
|
|
run: /bin/sh ./get-dependencies.sh
|
|
|
|
- name: Build AppImage
|
|
run: /bin/sh ./make-appimage.sh
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: DistroHopper-${{ matrix.arch }}
|
|
path: dist
|
|
|
|
release:
|
|
if: github.event_name == 'release'
|
|
needs: [build]
|
|
permissions: write-all
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
pattern: DistroHopper-*
|
|
merge-multiple: true
|
|
|
|
- name: Upload release assets
|
|
uses: softprops/action-gh-release@v3
|
|
with:
|
|
files: dist/*.AppImage
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|