Skip to content

stage270-pages

stage270-pages #118

name: stage270-pages
on:
push:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: "15 */6 * * *"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "stage270-pages"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install OpenTimestamps client
run: pip install opentimestamps-client
- name: Upgrade OTS and extract time settlement
run: python3 tools/upgrade_ots_and_extract_time.py
- name: Verify time settlement
run: python3 tools/verify_time_settlement.py
- name: Build verification score
run: python3 tools/build_verification_score.py
- name: Verify verification score
run: python3 tools/verify_verification_score.py
- name: Run VEP gate
run: python3 tools/verification_gate.py
- name: Verify gate result
run: python3 tools/verify_gate_result.py
- name: Write accept notification
run: python3 tools/write_accept_notification.py
- name: Verify accept notification
run: python3 tools/verify_accept_notification.py
- name: Emit workflow summary
run: python3 tools/emit_accept_summary.py
- name: Prepare published files
run: |
cp out/time_settlement/time_settlement.json site/
cp out/time_settlement/time_settlement.md site/
cp out/verification_score/verification_score.json site/
cp out/verification_score/verification_score.json.sha256 site/
cp out/verification_score/verification_score.md site/
if [ -f out/verification_score/verification_score.json.ots ]; then
cp out/verification_score/verification_score.json.ots site/
fi
cp out/vep_status/gate_result.json site/
cp out/vep_status/gate_result.json.sha256 site/
cp out/vep_status/gate_result.md site/
if [ -f out/notifications/accept_notification.json ]; then
cp out/notifications/accept_notification.json site/
fi
if [ -f out/notifications/accept_notification.md ]; then
cp out/notifications/accept_notification.md site/
fi
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4