File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build DEB and Create Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ build-deb :
10
+ name : Build DEB Package
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write
14
+
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+
21
+ - name : Set up Rust toolchain
22
+ uses : actions-rust-lang/setup-rust-toolchain@v1
23
+ with :
24
+ toolchain : stable
25
+
26
+ - name : Install cargo-deb
27
+ run : cargo install cargo-deb
28
+
29
+ - name : Install build dependencies
30
+ run : |
31
+ sudo apt-get update
32
+ sudo apt-get install -y libssl-dev pkg-config
33
+
34
+ - name : Build DEB package
35
+ run : cargo deb
36
+
37
+ - name : Verify DEB file
38
+ run : |
39
+ echo "Generated DEB package:"
40
+ ls -la target/debian/*.deb
41
+ echo "Build completed successfully"
42
+
43
+ - name : Create GitHub Release with DEB
44
+ uses : softprops/action-gh-release@v1
45
+ with :
46
+ files : target/debian/*.deb
47
+ generate_release_notes : true
48
+ draft : false
49
+ prerelease : false
50
+ body : |
51
+ ## 📦 Automated DEB Package Release
52
+
53
+ This release was automatically generated when pushing a git tag.
54
+
55
+ ### 📋 Installation Instructions
56
+
57
+ **Install the DEB package:**
58
+ ```bash
59
+ sudo dpkg -i *.deb
60
+ sudo apt-get install -f # Fix missing dependencies
61
+ ```
62
+ env :
63
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments