update workflow
All checks were successful
Build .deb on release / Build-Deb (push) Successful in 1m57s
All checks were successful
Build .deb on release / Build-Deb (push) Successful in 1m57s
This commit is contained in:
parent
016d238eb5
commit
1ca2c2b991
|
@ -4,19 +4,27 @@ run-name: Building .deb of latest release and adding to apt repo
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-Deb:
|
Build-Deb:
|
||||||
runs-on: asalex
|
runs-on: aarch64
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: "recursive"
|
||||||
|
- name: Build
|
||||||
|
run: "cargo build --release --target=aarch64-unknown-linux-gnu"
|
||||||
- name: Build .deb
|
- name: Build .deb
|
||||||
run: "cargo deb --target=aarch64-unknown-linux-gnu"
|
run: "cargo deb --target=aarch64-unknown-linux-gnu"
|
||||||
- name: Add .deb to apt repository
|
- name: Add .deb to apt repository
|
||||||
run: "aptly repo add tesla $(ls -t ./target/aarch64-unknown-linux-gnu/debian/*.deb | head -1)"
|
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"
|
||||||
- run: "aptly publish update testing"
|
- name: "Release package"
|
||||||
- run: "aptly publish update testing filesystem:deb:"
|
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}}"
|
||||||
|
|
Loading…
Reference in a new issue