tesla-charge-controller/.gitea/workflows/deb.yaml

23 lines
674 B
YAML
Raw Normal View History

2024-01-20 20:33:25 +11: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: asalex
steps:
- name: Check out repository code
uses: actions/checkout@v3
2024-01-20 20:36:27 +11:00
- name: Checkout submodules
run: git submodule update --init --recursive
2024-01-20 20:33:25 +11:00
- name: Build .deb
2024-01-20 20:35:35 +11:00
run: "cargo deb --target=aarch64-unknown-linux-gnu"
2024-01-20 20:33:25 +11:00
- name: Add .deb to apt repository
2024-01-20 20:35:35 +11:00
run: "aptly repo add tesla $(ls -t ./target/aarch64-unknown-linux-gnu/debian/*.deb | head -1)"
- run: "aptly publish update testing"
- run: "aptly publish update testing filesystem:deb:"