Files
bd2/.gitea/workflows/release.yml
T
Flechazo 6e0486b615
release notes / releases (push) Successful in 3s
build(all): publish CHANGELOG sections as Gitea releases
Add a Gitea Actions workflow for the BD2-only runner that creates a tagged release for every CHANGELOG.md section without one, at the commit that added it, with five-language notes and links to the signed release downloads.
2026-10-24 23:15:52 +08:00

32 lines
785 B
YAML

name: release notes
on:
push:
branches: [main]
paths: [CHANGELOG.md, .gitea/workflows/release.yml, .gitea/scripts/release.py]
workflow_dispatch:
permissions:
contents: write
jobs:
releases:
runs-on: bd2-host
timeout-minutes: 10
steps:
- name: Check out
env:
TOKEN: ${{ gitea.token }}
run: |
git init -q .
git -c http.extraHeader="Authorization: token $TOKEN" fetch -q --no-tags "$GITEA_URL/${{ gitea.repository }}.git" "${{ gitea.sha }}"
git checkout -q --detach FETCH_HEAD
- name: Create missing releases
env:
GITEA_TOKEN: ${{ gitea.token }}
run: python3 -I .gitea/scripts/release.py
env:
GITEA_URL: http://gitea:3000
GITEA_API: http://gitea:3000/api/v1