2023-12-17 20:28:43 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
on:
|
2023-12-17 20:39:06 +01:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*"
|
2023-12-17 20:28:43 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build_wheel:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
2023-12-19 00:03:28 +01:00
|
|
|
- name: Build Python wheel
|
2023-12-17 20:28:43 +01:00
|
|
|
run: |
|
|
|
|
apt update; apt install -y python3-pip
|
2023-12-17 20:41:51 +01:00
|
|
|
pip3 install --break-system-packages -e .[test]
|
2023-12-17 20:28:43 +01:00
|
|
|
python3 setup.py egg_info bdist_wheel
|
2023-12-19 03:59:51 +01:00
|
|
|
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-wheel-package-upload@v2-verbose
|
2023-12-19 03:51:36 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.API_USERNAME }}
|
|
|
|
password: ${{ secrets.API_PASSWORD }}
|
2023-12-17 20:28:43 +01:00
|
|
|
|
|
|
|
build_debian:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
2023-12-19 00:03:28 +01:00
|
|
|
- name: Prepare package
|
2023-12-17 20:28:43 +01:00
|
|
|
run: |
|
2023-12-19 00:03:28 +01:00
|
|
|
mkdir -p package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter
|
2023-12-17 20:28:43 +01:00
|
|
|
cp -r templates/ package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter/templates/
|
2023-12-19 03:12:45 +01:00
|
|
|
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-python-debian-package@v4
|
2023-12-19 00:03:28 +01:00
|
|
|
with:
|
|
|
|
python_module: tlsrpt_exporter
|
|
|
|
package_name: prometheus-tlsrpt-exporter
|
|
|
|
package_root: package/debian/prometheus-tlsrpt-exporter
|
|
|
|
package_output_path: package/debian
|
2023-12-19 02:48:00 +01:00
|
|
|
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-debian-package-upload@v2
|
2023-12-19 00:03:28 +01:00
|
|
|
with:
|
2023-12-19 03:51:36 +01:00
|
|
|
username: ${{ secrets.API_USERNAME }}
|
|
|
|
password: ${{ secrets.API_PASSWORD }}
|
2023-12-19 00:03:28 +01:00
|
|
|
deb: "package/debian/*.deb"
|