File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to publish debian packages for new releases
2
+
3
+ name : Build and publish .deb for latest release
4
+
5
+ # Controls when the action will run.
6
+ on :
7
+ # Triggers the workflow on push events but only for new tags
8
+ push :
9
+ tags :
10
+ - " *.*.*"
11
+
12
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
13
+ jobs :
14
+ # This workflow contains a single job called "build-and-release"
15
+ build-and-release :
16
+ # The type of runner that the job will run on
17
+ runs-on : ubuntu-latest
18
+ strategy :
19
+ matrix :
20
+ language : [ 'python' ]
21
+
22
+ # Steps represent a sequence of tasks that will be executed as part of the job
23
+ steps :
24
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25
+ - name : Checkout repository
26
+ uses : actions/checkout@v2
27
+ with :
28
+ fetch-depth : 0
29
+
30
+ # Runs a single command using the runners shell
31
+ - name : install-deps
32
+ run : |
33
+ sudo apt-get update -qq
34
+ sudo apt install -y build-essential debhelper devscripts acpi \
35
+ python3 python3-gi libnotify4 libappindicator3-1 gir1.2-appindicator3-0.1
36
+
37
+ - name : build-deb
38
+ run : |
39
+ dpkg-buildpackage -b -nc -tc
40
+ ls ../*.deb
41
+ ls ../*.changes
42
+
43
+ - name : get latest tag
44
+ id : gettag
45
+ run : echo "::set-output name=latesttag::$(git describe --tags --abbrev=0 || git rev-list --max-parents=0 ${{github.ref}})"
46
+
47
+ - name : Create Release
48
+ uses : softprops/action-gh-release@v1
49
+ with :
50
+ tag_name : ${{ steps.gettag.outputs.latesttag }}
51
+ # name: "version: "${{ steps.gettag.outputs.latesttag }}
52
+ generate_release_notes : true
53
+ draft : false
54
+ prerelease : false
55
+ files : |
56
+ ../*.deb
57
+ ../*.changes
58
+ env :
59
+ GITHUB_TOKEN : ${{ github.token }}
60
+
You can’t perform that action at this time.
0 commit comments