name: Build ISO and Upload Artifact on: push: branches: - main workflow_dispatch: jobs: build-and-upload: env: RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Install dependencies run: | sudo apt update sudo apt install -y clang lld mtools xorriso curl - name: Clone edk2 run: | git clone https://github.com/tianocore/edk2.git ./edk2 - name: Make scripts executable run: chmod +x ./scripts/build_c.sh ./scripts/out_to_iso.sh - name: Run build_c.sh run: ./scripts/build_c.sh - 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: | tea add marti/Lints-release tea commit -m "Automated commit from build workflow" || echo "No changes to commit" tea push marti/Lints-release main