From 7ef7ef9e829715ecd293caead8c6cc6f00765388 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Wed, 28 Oct 2020 05:16:37 -0600 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6892d6..9f381fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,6 +117,28 @@ jobs: token: ${{secrets.HOMEBREW_TOKEN}} formula: taskwarrior-tui + debian: + name: Publish debian packagge + runs-on: ubuntu-latest + steps: + - uses: actions-rs/cargo@v1 + with: + command: build + args: --release + - name: Install cargo-deb + run: cargo install cargo-deb + - uses: actions/checkout@v1 + - name: Build deb package + run: cargo deb -p taskwarrior-tui -o target/debian/taskwarrior-tui.deb + - name: Releasing assets + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 + with: + files: | + target/debian/taskwarrior-tui.deb + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + snap: name: Push to snap runs-on: ubuntu-latest