-
Notifications
You must be signed in to change notification settings - Fork 74
64 lines (54 loc) · 1.77 KB
/
publish-deb-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Publish Debian Package
on:
workflow_dispatch:
env:
QSV_KIND: prebuilt
jobs:
analyze-tags:
runs-on: ubuntu-22.04
outputs:
previous-tag: ${{ steps.previoustag.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
build:
needs: analyze-tags
runs-on: ubuntu-22.04
steps:
- name: Installing Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: x86_64-unknown-linux-gnu
override: true
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# persist-credentials: false
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Install Cargo Deb
run: cargo install cargo-deb
- name: Build Debian Package
run: cargo deb --target=x86_64-unknown-linux-gnu
- name: Upload Debian Package
uses: actions/upload-artifact@v3
with:
name: qsv-deb
path: target/debian/*
# - name: Upload zipped binaries to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: target/debian/qsv_${{ needs.analyze-tags.outputs.previous-tag }}-1_x86_64-unknown-linux-gnu.deb
# asset_name: qsv_${{ needs.analyze-tags.outputs.previous-tag }}-1_x86_64-unknown-linux-gnu.deb
# overwrite: true
# tag: ${{ needs.analyze-tags.outputs.previous-tag }}