Update .gitea/workflows/build-iso.yml
Some checks failed
Build ISO and Upload Artifact / build-and-upload (push) Failing after 1m26s

This commit is contained in:
2025-11-29 22:12:42 +01:00
parent b9539764ed
commit 7d6cc05f99

View File

@@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y clang lld mtools xorriso
sudo apt install -y clang lld mtools xorriso curl
- name: Clone edk2
run: |
@@ -33,11 +33,19 @@ jobs:
- name: Run out_to_iso.sh
run: ./scripts/out_to_iso.sh
- name: Login to git
run: |
LATEST_VERSION=$(curl -s https://dl.gitea.com/tea/ | grep -oP '(?<=href="/tea/)[^/"]*' | grep -E '^[0-9]+(\.[0-9]+){1,2}$' | sort -V | tail -n 1)
curl -L https://dl.gitea.com/tea/${LATEST_VERSION}/tea-${LATEST_VERSION}-linux-amd64 -o /usr/local/bin/tea
chmod +x /usr/local/bin/tea
tea login add --name marti --url https://git.martinpetr.dev --token ${{ secrets.DEPLOYMENT_TOKEN }}
tea login default marti
- name: Commit and push to Lints-release repo
run: |
git config user.name "GitHub Actions"
git config user.email "github-actions@github.com"
git remote add target_repo https://${{ secrets.DEPLOYMENT_TOKEN }}@git.martinpetr.dev/marti/Lints-release.git
git remote add target_repo https://git.martinpetr.dev/marti/Lints-release.git
git add -f out/lints.iso
git commit -m "Automated commit from build workflow" || echo "No changes to commit"
git push target_repo main