Skip to content

Build and Release DEB Package #22

Build and Release DEB Package

Build and Release DEB Package #22

Workflow file for this run

name: Build and Release DEB Package
on:
push:
tags:
- 'v*'
jobs:
build_and_release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y dpkg-dev
- name: Build DEB package
run: dpkg-deb --build nagios-plugins-ets-1.4
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload DEB package to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./nagios-plugins-ets-1.4.deb
asset_name: nagios-plugins-ets-1.4.deb
asset_content_type: application/vnd.debian.binary-package