github action adjustements #25
Workflow file for this run
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 and Upload Debian Package | |
on: | |
push: | |
tags: | |
- '*' # This will trigger the workflow for any tag that starts with any character | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 'latest' | |
- name: Install build dependencies | |
run: | | |
python3 -V | |
curl -sSL https://install.python-poetry.org | python3 - | |
export PATH=$HOME/.local/bin:$PATH | |
sudo apt-get update | |
sudo apt-get install -y build-essential debhelper dh-python python3-all pybuild-plugin-pyproject | |
- name: Prepare orig.tar.gz | |
run: | | |
cd .. | |
tar czf okadminfinder_${{ github.ref_name }}.orig.tar.gz okadminfinder | |
ls -ll | |
- name: Clean before build | |
run: | | |
fakeroot debian/rules clean | |
- name: Build Debian package | |
run: | | |
dpkg-buildpackage -rfakeroot -uc -us | |
- name: Move Debian package to working directory | |
run: | | |
mv ../*.deb . | |
- name: List files in working directory | |
run: | | |
ls -ll # Verify files are present | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
okadminfinder_${{ github.ref_name }}-1_all.deb |