mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-27 00:28:14 +00:00
Forks inherit three jobs that cannot succeed there. Pages progress fails on `gh api repos/<fork>/pages` (HTTP 404) after every push to main that touches core/libs/prx, Pages fails at the release download or the deployment, and the Build linux job waits for the self-hosted `anyps5` runner, which forks don't have, until GitHub drops it. These jobs now run only when the repository is not a fork. Co-Authored-By: Claude Opus 5.5 <[email protected]>
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- .github/workflows/pages.yml
|
|
- CMakeLists.txt
|
|
- core/relinker/**
|
|
- demo/web/**
|
|
- tools/build_web.py
|
|
- tools/package_release.py
|
|
- tools/nid_names.py
|
|
- tools/progress.py
|
|
- tools/progress_history.py
|
|
- tools/rdna_isa.txt
|
|
- tools/test_web.py
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
workflow_run:
|
|
workflows: [Release]
|
|
types: [completed]
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: pages
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
pages:
|
|
if: ${{ !github.event.repository.fork && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
ref: main
|
|
fetch-depth: 0
|
|
- name: Download matching release converter and libraries
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
run: python3 tools/build_web.py --build build-wasm --release
|
|
- run: python3 tools/progress.py build-wasm/web
|
|
- run: python3 tools/progress_history.py build-wasm/web
|
|
- uses: actions/upload-pages-artifact@v5
|
|
with:
|
|
path: build-wasm/web
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v5
|