From 4a9b1ccc00888613c0058cee8de9ea97f8113d3a Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Sat, 20 Jan 2024 20:33:25 +1100 Subject: [PATCH] deb action --- .gitea/workflows/deb.yaml | 20 ++++++++++++++++++++ .gitea/workflows/demo.yaml | 19 ------------------- 2 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 .gitea/workflows/deb.yaml delete mode 100644 .gitea/workflows/demo.yaml diff --git a/.gitea/workflows/deb.yaml b/.gitea/workflows/deb.yaml new file mode 100644 index 0000000..be47c97 --- /dev/null +++ b/.gitea/workflows/deb.yaml @@ -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: diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml deleted file mode 100644 index 0f17348..0000000 --- a/.gitea/workflows/demo.yaml +++ /dev/null @@ -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 }}." \ No newline at end of file