From dc1843c56d62719781dfa268d9b7f2339abd4250 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Wed, 21 Oct 2026 18:25:19 +0000 Subject: [PATCH] asmr: render workflow --- .gitea/workflows/asmr.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/asmr.yml diff --git a/.gitea/workflows/asmr.yml b/.gitea/workflows/asmr.yml new file mode 100644 index 0000000..965c479 --- /dev/null +++ b/.gitea/workflows/asmr.yml @@ -0,0 +1,34 @@ +name: asmr +# Render the ASMR voice bake-off (asmr/voices.json) into asmr/audio/ through the shared inference worker and commit. +on: + workflow_dispatch: + push: + branches: [main] + paths: [asmr/voices.json, tools/asmr.py, .gitea/workflows/asmr.yml] +permissions: + contents: write +concurrency: + group: asmr + cancel-in-progress: false +jobs: + render: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 1 + - name: ffmpeg + run: command -v ffmpeg || (sudo apt-get update -qq && sudo apt-get install -y -qq ffmpeg) || (apt-get update -qq && apt-get install -y -qq ffmpeg) + - name: render + run: python3 tools/asmr.py + - name: commit + run: | + set -eu + git pull -q --rebase origin main || true + git add asmr/audio + if git diff --cached --quiet; then echo "nothing new"; exit 0; fi + git -c user.name='gitea-actions[bot]' -c user.email='gitea-actions[bot]@users.noreply.teahub.xyz' commit -q -m "asmr: renders" + git push -q origin HEAD:main + - name: tell Teahub pages to pull + run: curl -fsS -X POST "https://gandora.yolopreneur.lol/_hook/gandora/site" || true