tesla-charge-controller/.gitea/workflows/deb.yaml
2024-07-09 10:32:20 +10:00

27 lines
830 B
YAML

name: Build and release .deb
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
Build:
uses: ./.gitea/workflows/build.yaml
Release:
runs-on: aarch64
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Add .deb to apt repository
run: "curl --user alex:${{ secrets.PACKAGING_TOKEN }} --upload-file $(ls -t ./release/*.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/tesla-charge-controller
api_key: "${{secrets.PACKAGING_TOKEN}}"