From 5b2c4bfd0eeee7afad3bf2c99c95dffbf2d7f201 Mon Sep 17 00:00:00 2001 From: d-k-bo <47948262+d-k-bo@users.noreply.github.com> Date: Fri, 20 Oct 2023 20:48:46 +0200 Subject: [PATCH] Setup github actions --- .github/workflows/ci.yaml | 21 +++++++++++++++++++++ .github/workflows/release.yaml | 23 +++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..496e630 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + flatpak: + name: "Flatpak" + runs-on: ubuntu-latest + container: + image: bilelmoussaoui/flatpak-github-actions:gnome-45 + options: --privileged + steps: + - uses: actions/checkout@v4 + - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 + with: + bundle: televido.flatpak + manifest-path: build-aux/de.k_bo.Televido.json + cache-key: flatpak-builder-${{ github.sha }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..eb94d25 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,23 @@ +name: Release + +permissions: + contents: write + +on: + push: + tags: + - v[0-9]+.* + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install meson + run: pipx install meson + - name: Create meson dist bundle + run: meson setup _build && meson dist -C _build --no-tests + - uses: softprops/action-gh-release@v1 + with: + draft: true + files: _build/meson-dist/*