nmreval/.gitea/workflows/build-appimage.yaml

39 lines
1.6 KiB
YAML
Raw Normal View History

2023-12-06 13:13:57 +00:00
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."
2023-12-06 13:29:36 +00:00
- run: |
apt-get -y update
2023-12-06 13:29:36 +00:00
apt-get -y install python3-yaml python3-requests
2023-12-06 13:13:57 +00:00
- name: Update version info
2023-12-06 13:16:48 +00:00
run: ./tools/update_version.py
2023-12-06 13:29:36 +00:00
env:
GO_PIPELINE_LABEL: ${{ gitea.event.repository.updated_at}}_${{ gitea.sha }}
2023-12-06 13:13:57 +00:00
- name: Prepare GPG
2023-12-06 13:42:51 +00:00
run: |
env
/usr/lib/gnupg/gpg-preset-passphrase --preset --passphrase ${GPG_PASSPHRASE} ${GPG_KEYGRIP}
2023-12-06 13:13:57 +00:00
env:
GPG_KEYGRIP: ${{ env.GPG_KEYGRIP }}
2023-12-06 13:42:51 +00:00
#GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2023-12-06 13:35:38 +00:00
- name: Build AppImage
run: ./tools/build.sh
2023-12-06 13:13:57 +00:00
- name: Upload AppImage
2023-12-06 13:16:48 +00:00
run: ./tools/upload_gitea.sh
2023-12-06 13:13:57 +00:00
env:
2023-12-06 13:29:36 +00:00
GO_PIPELINE_LABEL: ${{ gitea.event.repository.updated_at}}_${{ gitea.sha }}
2023-12-06 13:13:57 +00:00
UPLOAD_TOKEN: ${{ env.GITEA_TOKEN }}
UPLOAD_USER: ${{ env.GITEA_USER }}
- run: echo "🍏 This job's status is ${{ job.status }}."