prometheus-tlsrpt-exporter/.forgejo/workflows/package.yml
s3lph b3e7e19a11
Some checks failed
/ test (push) Successful in 1m1s
/ codestyle (push) Successful in 1m0s
/ build_wheel (push) Failing after 1m20s
/ build_debian (push) Failing after 2m29s
fix: ci
2023-12-19 02:48:00 +01:00

37 lines
1.2 KiB
YAML

---
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
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-wheel-package-upload@v2
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/
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-python-debian-package@v2
with:
python_module: tlsrpt_exporter
package_name: prometheus-tlsrpt-exporter
package_root: package/debian/prometheus-tlsrpt-exporter
package_output_path: package/debian
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-debian-package-upload@v2
with:
deb: "package/debian/*.deb"