41 lines
1.2 KiB
YAML
41 lines
1.2 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: Verify live Pages and source isolation
|
|
run: python3 ci/check_live_pages.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
|