--- on: push: tags: - "v*" jobs: build_wheel: runs-on: docker steps: - uses: https://code.forgejo.org/actions/checkout@v4 - name: Build Python wheel run: | apt update; apt install -y python3-pip pip3 install --break-system-packages -e .[test] python3 setup.py egg_info bdist_wheel - name: Upload Python wheel uses: https://git.kabelsalat.ch/s3lph/forgejo-action-wheel-package-upload@v1 build_debian: runs-on: docker steps: - uses: https://code.forgejo.org/actions/checkout@v4 - name: Prepare package run: | mkdir -p package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter cp -r templates/ package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter/templates/ - name: Build Debian package uses: https://git.kabelsalat.ch/s3lph/forgejo-action-python-debian-package@v1 with: python_module: tlsrpt_exporter package_name: prometheus-tlsrpt-exporter package_root: package/debian/prometheus-tlsrpt-exporter package_output_path: package/debian - name: Upload Debian package uses: https://git.kabelsalat.ch/s3lph/forgejo-action-python-debian-package@v1 with: deb: "package/debian/*.deb"