2a2874254b
/ publish (push) Successful in 44s
Allows manual pipeline runs from the Gitea UI without needing a dummy commit. Also fixes blank-commit trigger issue (paths-ignore skips runs with no changed files). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
on:
|
|
push:
|
|
branches: [master]
|
|
paths-ignore:
|
|
- "wip/**"
|
|
- "README.md"
|
|
- ".gitignore"
|
|
- ".claude/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: python:3.12-slim
|
|
|
|
steps:
|
|
- name: Install system deps
|
|
run: apt-get update -qq && apt-get install -y --no-install-recommends git pandoc ca-certificates
|
|
|
|
- name: Checkout ncmr-songs
|
|
env:
|
|
FAPAT: ${{ secrets.FAPAT }}
|
|
URL_TO_GITEA: ${{ vars.URL_TO_GITEA }}
|
|
run: |
|
|
git clone "http://mikkeli:${FAPAT}@${URL_TO_GITEA#http://}/mikkeli/ncmr-songs" ncmr-songs
|
|
git -C ncmr-songs checkout ${{ github.sha }}
|
|
|
|
- name: Checkout auto-wiki (renderer)
|
|
env:
|
|
FAPAT: ${{ secrets.FAPAT }}
|
|
URL_TO_GITEA: ${{ vars.URL_TO_GITEA }}
|
|
run: git clone "http://mikkeli:${FAPAT}@${URL_TO_GITEA#http://}/mikkeli/novoyuuparosk-auto-wiki" auto-wiki
|
|
|
|
- name: Install Python deps
|
|
run: pip install --no-cache-dir -r auto-wiki/pipelines/songs/requirements.txt
|
|
|
|
- name: Publish
|
|
env:
|
|
WIKI_API_URL: ${{ vars.WIKI_API_URL }}
|
|
WIKI_BASE_URL: ${{ vars.WIKI_BASE_URL }}
|
|
WIKI_BOT_USER: ${{ secrets.WIKI_BOT_USER }}
|
|
WIKI_BOT_PASSWORD: ${{ secrets.WIKI_BOT_PASSWORD }}
|
|
SOURCE_REF: ${{ github.sha }}
|
|
GITEA_REPO_URL: ${{ vars.URL_TO_GITEA }}/mikkeli/ncmr-songs
|
|
run: python auto-wiki/pipelines/songs/render.py --source-dir ncmr-songs --all
|