Upload deb files

This commit is contained in:
Ajeet D'Souza 2022-06-25 23:31:53 +05:30
parent 1ad67e8db9
commit c8e9d5c321
1 changed files with 9 additions and 9 deletions

View File

@ -63,13 +63,6 @@ jobs:
override: true override: true
target: ${{ matrix.target }} target: ${{ matrix.target }}
- name: Install cargo-deb
if: ${{ matrix.deb == true }}
uses: actions-rs/install@v0.1
with:
crate: cargo-deb
version: latest
- name: Setup cache - name: Setup cache
uses: Swatinem/rust-cache@v1 uses: Swatinem/rust-cache@v1
@ -80,12 +73,18 @@ jobs:
args: --release --locked --target=${{ matrix.target }} --color=always --verbose args: --release --locked --target=${{ matrix.target }} --color=always --verbose
use-cross: ${{ runner.os == 'Linux' }} use-cross: ${{ runner.os == 'Linux' }}
- name: Install cargo-deb
if: ${{ matrix.deb == true }}
uses: actions-rs/install@v0.1
with:
crate: cargo-deb
- name: Build deb - name: Build deb
if: ${{ matrix.deb == true }} if: ${{ matrix.deb == true }}
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: deb command: deb
args: --no-build --target=${{ matrix.target }} args: --no-build --no-strip --output=. --target=${{ matrix.target }}
- name: Package (*nix) - name: Package (*nix)
if: runner.os != 'Windows' if: runner.os != 'Windows'
@ -110,8 +109,9 @@ jobs:
with: with:
name: ${{ matrix.target }} name: ${{ matrix.target }}
path: | path: |
*.zip *.deb
*.tar.gz *.tar.gz
*.zip
- name: Create release - name: Create release
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')