Files
peptide-starter-theme/.github/workflows/deploy.yml
peptiderepo 4f80a7499b ci: add permissions: write + secrets:inherit to deploy.yml
The deploy.yml was missing a permissions: block, which means GitHub defaults
to read-only access for public repos. This prevents the nested reusable ci.yml
(permissions: contents: write) from starting, causing startup_failure.

Also adds secrets: inherit to the ci: job so secrets flow through the
reusable workflow chain.

Agent-Session: fix-e2e-ref-20260617
2026-06-17 11:40:13 +07:00

30 lines
743 B
YAML

name: Deploy Theme to Hostinger
on:
push:
branches: [main]
permissions:
contents: write
concurrency:
group: deploy-peptide-starter-theme
cancel-in-progress: true
jobs:
# Gate deploy on the reusable CI (lint-php, phpcs, phpunit, file-size, lint-js).
# ci.yml exposes workflow_call so it can be used here without re-running a
# separate workflow — the call result satisfies the branch-protection context
# "ci / ci (lint-php (8.1))" etc.
ci:
uses: ./.github/workflows/ci.yml
secrets: inherit
deploy:
name: Deploy (shared pipeline)
needs: ci
uses: peptide-repo/peptide-e2e/.github/workflows/deploy-app.yml@main
with:
target_path: wp-content/themes/peptide-starter
secrets: inherit