homekit-logger/.gitea/workflows/deb.yaml

29 lines
1 KiB
YAML
Raw Normal View History

2024-06-02 11:43:05 +10:00
name: Build .deb on release
run-name: Building .deb of latest release and adding to apt repo
on:
push:
tags:
- "*"
jobs:
Build-Deb:
runs-on: aarch64
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build
2024-06-02 11:45:16 +10:00
run: "cargo build -p homekit-exporter --release --target=aarch64-unknown-linux-gnu"
2024-06-02 11:43:05 +10:00
- name: Build .deb
2024-06-02 11:45:16 +10:00
run: "cargo deb -p homekit-exporter --target=aarch64-unknown-linux-gnu"
2024-06-02 11:43:05 +10:00
- name: Add .deb to apt repository
run: "curl --user alex:${{ secrets.PACKAGING_TOKEN }} --upload-file $(ls -t ./target/aarch64-unknown-linux-gnu/debian/*.deb | head -1) https://git.alexjanka.com/api/packages/alex/debian/pool/testing/main/upload"
- name: "Release package"
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
./target/aarch64-unknown-linux-gnu/debian/*.deb
./target/aarch64-unknown-linux-gnu/release/homekit-exporter
api_key: "${{secrets.PACKAGING_TOKEN}}"