Files
alkane-benchmarks/.gitea/workflows/main.yml
T
Alkane CI 78f1f82b38
next-site-candidate / validate-and-candidate (push) Canceled after 0s
Add honest badges for public benchmark repository
2026-10-16 08:38:26 -06:00

39 lines
1.1 KiB
YAML

name: main-site-gate
on:
push:
branches: [main]
concurrency:
group: alkane-benchmarks-main
cancel-in-progress: false
jobs:
validate-and-release:
runs-on: alkane-ci
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Test site and version guards
run: python3 -m unittest discover -s ci -p 'test_*.py'
- name: Validate published Pages snapshot
run: python3 ci/check_published.py
- name: Publish measured repository badges
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 ci/metrics.py
- name: Select release version
id: version
run: python3 ci/version.py main >> "$GITHUB_OUTPUT"
- name: Release validated site configuration
if: steps.version.outputs.release == 'true'
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 ci/release.py "${{ steps.version.outputs.tag }}" main
- name: Clean generated Python work
if: always()
run: python3 ci/cleanup.py