From 7e3541806b53c6f01eda59b06cd03ab8d5244f5d Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Wed, 6 Dec 2023 14:13:57 +0100 Subject: [PATCH] preliminary build workflow --- .gitea/workflows/build-appimage.yaml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build-appimage.yaml diff --git a/.gitea/workflows/build-appimage.yaml b/.gitea/workflows/build-appimage.yaml new file mode 100644 index 0000000..dd420ac --- /dev/null +++ b/.gitea/workflows/build-appimage.yaml @@ -0,0 +1,32 @@ +name: Build AppImage +run-name: ${{ gitea.actor }} is building THE AppImage 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: bullseye + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - 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: Update version info + run: | + ./${{ gitea.workspace }}/tools/update_version.py + - name: Prepare GPG + run: | + /usr/lib/gnupg/gpg-preset-passphrase --preset --passphrase ${GPG_PASSPHRASE} ${GPG_KEYGRIP} + - name: Build AppImage + run: ./${{ gitea.workspace }}/tools/build.sh + env: + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + GPG_KEYGRIP: ${{ env.GPG_KEYGRIP }} + - name: Upload AppImage + run: ./{{ gitea.workspace }}/tools/upload_gitea.sh + env: + UPLOAD_TOKEN: ${{ env.GITEA_TOKEN }} + UPLOAD_USER: ${{ env.GITEA_USER }} + - run: echo "🍏 This job's status is ${{ job.status }}."