Skip to content

Commit

Permalink
upload the artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
dtandersen committed Aug 7, 2024
1 parent b0ca6a0 commit f64b67c
Showing 1 changed file with 5 additions and 40 deletions.
45 changes: 5 additions & 40 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v2

- name: Install dependencies
- name: Install debuild
run: |
sudo apt-get update
sudo apt-get install -y \
Expand All @@ -21,53 +21,18 @@ jobs:
lintian \
debhelper
- name: Check Directory
- name: Download the source tarball
run: |
pwd
ls
# - name: Create directories for DEB packaging
# run: |
# mkdir -p nagios-plugins-ets-1.4/usr/lib64/nagios/plugins
# mkdir -p nagios-plugins-ets-1.4/DEBIAN

# - name: Print folder structure
# run: |
# ls -R nagios-plugins-ets-1.4

# - name: Download plugin files
# run: |
# Download each file using wget
# wget -O nagios-plugins-ets-1.4/check_mem.c https://github.com/ucsd-ets/nagios-plugins-ets/blob/master/check_mem.c
# wget -O nagios-plugins-ets-1.4/usr/lib64/nagios/plugins/check_service https://github.com/ucsd-ets/nagios-plugins-ets/blob/master/check_service
# wget -O nagios-plugins-ets-1.4/usr/lib64/nagios/plugins/check_smartctl https://github.com/ucsd-ets/nagios-plugins-ets/blob/master/check_smartctl
# wget -O nagios-plugins-ets-1.4/usr/lib64/nagios/plugins/check_smartmon2.py https://github.com/ucsd-ets/nagios-plugins-ets/blob/master/check_smartmon2.py
# wget -O nagios-plugins-ets-1.4/usr/lib64/nagios/plugins/check_smartmon.py https://github.com/ucsd-ets/nagios-plugins-ets/blob/master/check_smartmon.py
# wget -O nagios-plugins-ets-1.4/usr/lib64/nagios/plugins/check_zpools.sh https://github.com/ucsd-ets/nagios-plugins-ets/blob/master/check_zpools.sh
# chmod 755 nagios-plugins-ets-1.4/usr/lib64/nagios/plugins/*

# - name: Print folder structure
# run: |
# ls -R nagios-plugins-ets-1.4

# - name: Copy plugin files
# run: |
# # cp control nagios-plugins-ets-1.4/DEBIAN/
# # cp postinst nagios-plugins-ets-1.4/DEBIAN/
wget -O ../nagios-plugins-ets_1.4.orig.tar.gz https://github.com/ucsd-ets/nagios-plugins-ets/archive/refs/tags/1.2.tar.gz
tar zxvf ../nagios-plugins-ets_1.4.orig.tar.gz --strip-components=1
# - name: Build DEB package
# run: dpkg-deb --build nagios-plugins-ets-1.4
- name: Build DEB package
run: |
wget -O ../nagios-plugins-ets_1.4.orig.tar.gz https://github.com/ucsd-ets/nagios-plugins-ets/archive/refs/tags/1.2.tar.gz
tar zxvf ../nagios-plugins-ets_1.4.orig.tar.gz --strip-components=1
rm README.md
rm -rf .github
debuild -us -uc
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: nagios-plugins-ets_amd64.deb
path: |
nagios-plugins-ets_1.4_amd64.deb
../nagios-plugins-ets_1.4_amd64.deb

0 comments on commit f64b67c

Please sign in to comment.