deb action

This commit is contained in:
Alex Janka 2024-01-20 20:33:25 +11:00
parent 4b4fe8f7c0
commit 4a9b1ccc00
2 changed files with 20 additions and 19 deletions

20
.gitea/workflows/deb.yaml Normal file
View file

@ -0,0 +1,20 @@
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
- name: Build .deb
run: cargo deb --target=aarch64-unknown-linux-gnu
- name: Add .deb to apt repository
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:

View file

@ -1,19 +0,0 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: asalex
steps:
- run: echo "this is going to my home directory!"|tee $HOME/from-action
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."