2023-12-06 13:13:57 +00:00
|
|
|
name: Build AppImage
|
2023-12-06 18:48:14 +00:00
|
|
|
run-name: ${{ gitea.actor }} is building THE AppImage 🚀 # a lot of excitement for this build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-12-06 13:13:57 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
2023-12-07 14:17:16 +00:00
|
|
|
runs-on: bookworm
|
2023-12-06 13:13:57 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
2023-12-06 13:29:36 +00:00
|
|
|
- run: |
|
2023-12-06 13:30:48 +00:00
|
|
|
apt-get -y update
|
2023-12-07 14:17:16 +00:00
|
|
|
apt-get -y install python3-yaml python3-requests
|
2023-12-06 14:45:19 +00:00
|
|
|
- name: Declare some variables
|
2023-12-06 14:48:45 +00:00
|
|
|
shell: bash
|
2023-12-06 14:45:19 +00:00
|
|
|
run: |
|
2023-12-06 15:36:56 +00:00
|
|
|
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
2023-12-06 15:41:34 +00:00
|
|
|
echo "YEAR=$(date +%Y)" >> $GITHUB_ENV
|
2023-12-06 14:28:26 +00:00
|
|
|
- name: Build AppImage
|
2023-12-06 13:42:51 +00:00
|
|
|
run: |
|
2023-12-06 15:21:44 +00:00
|
|
|
echo $GO_PIPELINE_LABEL
|
2023-12-06 13:53:07 +00:00
|
|
|
eval $(gpg-agent --daemon --allow-preset-passphrase --default-cache-ttl 1 --max-cache-ttl 7200)
|
2023-12-06 13:42:51 +00:00
|
|
|
/usr/lib/gnupg/gpg-preset-passphrase --preset --passphrase ${GPG_PASSPHRASE} ${GPG_KEYGRIP}
|
2023-12-06 14:28:26 +00:00
|
|
|
./tools/update_version.py
|
|
|
|
./tools/build.sh
|
2023-12-06 13:13:57 +00:00
|
|
|
env:
|
2023-12-06 13:47:16 +00:00
|
|
|
GPG_KEYGRIP: ${{ vars.GPG_KEYGRIP }}
|
|
|
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
2023-12-07 14:17:16 +00:00
|
|
|
GO_PIPELINE_LABEL: ${{ env.YEAR }}.${{ gitea.run_number }}_${{ env.SHA_SHORT }}_bookworm
|
2023-12-06 13:13:57 +00:00
|
|
|
- name: Upload AppImage
|
2023-12-06 14:45:19 +00:00
|
|
|
run: ./tools/upload_gitea.sh
|
2023-12-06 13:13:57 +00:00
|
|
|
env:
|
2023-12-07 14:17:16 +00:00
|
|
|
GO_PIPELINE_LABEL: ${{ env.YEAR }}.${{ gitea.run_number }}_${{ env.SHA_SHORT }}_bookworm
|
2023-12-06 15:51:16 +00:00
|
|
|
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
|
|
|
|
UPLOAD_USER: ${{ vars.UPLOAD_USER }}
|