deb action
This commit is contained in:
parent
4b4fe8f7c0
commit
4a9b1ccc00
20
.gitea/workflows/deb.yaml
Normal file
20
.gitea/workflows/deb.yaml
Normal 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:
|
|
@ -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 }}."
|
|
Loading…
Reference in a new issue