forked from Mellanox/hw-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 888 Bytes
/
Copy pathbuild-release.yml
File metadata and controls
34 lines (31 loc) · 888 Bytes
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
# This is an action script to build and attach the packages to a release
name: Build hw-management release artifacts
on:
release:
types: [published]
jobs:
rpm_build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3.5.2
- name: Install build packages
run: |
sudo apt-get update
sudo apt-get install rpm
sudo apt-get install devscripts build-essential lintian dh-make
- name: Build deb & rpm packages
run: |
debuild -us -uc -d
debuild -us -uc -b -aarm64
cd rpm
chmod a+x ./gen_rpm.sh
./gen_rpm.sh
- name: Release
uses: softprops/action-gh-release@v0.1.15
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
../*.deb
rpm/*.rpm