added threshold for yt thumbs crop #307
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
# This workflow will upload a Python Package using Twine when a release is created | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Build DEB package | |
on: [push, pull_request] | |
# release: | |
# types: [published] | |
permissions: | |
contents: write | |
jobs: | |
test_deb_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: oprypin/find-latest-tag@v1 | |
with: | |
repository: sb0y/warp_beacon | |
releases-only: true # This repository doesn't use GitHub's "release" feature. | |
id: latesttag | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
sudo apt update -y | |
sudo apt install debhelper python3-pip python3-build python3-virtualenv dh-virtualenv dh-python pkg-config libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libavfilter-dev libswscale-dev libswresample-dev -y | |
python -m pip install --upgrade pip | |
pip install build | |
- name: Build package | |
run: | | |
DATE=`date +"%a, %d %b %Y %H:%m:%S %z"` | |
echo "warp-beacon (""${{ steps.latesttag.outputs.tag }}"") stable; urgency=medium" > debian/changelog | |
echo "" >> debian/changelog | |
echo " * test deb package" >> debian/changelog | |
echo "" >> debian/changelog | |
echo " -- Andrey Bagrintsev <andrey@bagrintsev.me> ${DATE}" >> debian/changelog | |
cat debian/changelog | |
dpkg-buildpackage -us -uc -b |