From 406c403e211d83fa3627b060b323af782f4c8645 Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Mon, 5 Sep 2022 20:56:04 +0200 Subject: [PATCH] add workflow to build deb package --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..afadd11 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build release packages +on: + release: + types: [published] + workflow_dispatch: +jobs: + build-packages: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + + # Misc + # -------------------------------------- + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::$(cat VERSION) + + # Dependencies + # -------------------------------------- + - name: Install build dependencies + run: | + sudo apt install -y debhelper python3 gettext build-essential desktop-file-utils ninja-build meson libadwaita-1-dev make + + # Deb Build + # -------------------------------------- + - name: Build .deb package + run: dpkg-buildpackage + + # Release packages + # -------------------------------------- + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + draft: false + prerelease: false + automatic_release_tag: ${{ steps.get_version.outputs.VERSION }} + title: ${{ steps.get_version.outputs.VERSION }} + files: ../ubuntu-smoother_*.deb \ No newline at end of file