File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : On-publish
2
+
3
+ on :
4
+ release :
5
+ branches : [ "master" ]
6
+ types : [ "published" ]
7
+
8
+ jobs :
9
+ build-deb-package :
10
+
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : configure
16
+ run : ./configure
17
+ - name : make
18
+ run : make
19
+ - name : Create deb file
20
+ run : |
21
+ mkdir -p .debpkg/usr/local/bin
22
+ mkdir -p .debpkg/usr/local/man/man1
23
+ cp bin/stu .debpkg/usr/local/bin/
24
+ cp man/stu.1 .debpkg/usr/local/man/man1/
25
+ - uses : jiro4989/build-deb-action@v3
26
+ with :
27
+ package : stu
28
+ package_root : .debpkg
29
+ maintainer : Jérôme Kunegis
30
+ version : ${{ github.ref }} # refs/tags/v*.*.*
31
+ arch : ' amd64'
32
+ desc : ' stu - Build automation'
33
+ - name : Upload deb file to release
34
+ uses : svenstaro/upload-release-action@v2
35
+ with :
36
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
37
+ file : stu_${{ github.ref_name }}_amd64.deb
38
+ asset_name : stu_amd64.deb
39
+ tag : ${{ github.ref }}
40
+ overwrite : true
You can’t perform that action at this time.
0 commit comments