Files
site/.gitea/workflows/asmr.yml
T
2026-10-21 18:41:09 +00:00

34 lines
1.2 KiB
YAML

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: git pull -q origin main && python3 tools/asmr.py
- name: commit
run: |
set -eu
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