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