github action #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Debian Package | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install build dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential debhelper dh-python python3-all | |
- name: Prepare orig.tar.gz | |
run: | | |
cd .. | |
tar czf okadminfinder_1.1.0.orig.tar.gz okadminfinder | |
- name: Build Debian package | |
run: | | |
cd ../okadminfinder | |
dpkg-buildpackage -rfakeroot -uc -us | |
- name: Upload Debian package artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: okadminfinder-deb-package | |
path: okadminfinder_*.deb | |