ci: Publish prebuilt assets for Pilot

Build the app's assets in CI for each push and publish them on the release assets-<branch>, so Pilot benches download them instead of building on the server.
This commit is contained in:
Tanmoy Sarkar
2026-10-05 12:12:56 +05:30
parent e938163cca
commit dbc5d90bda

15
.github/workflows/assets.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Pre-build assets
on:
push:
branches: [develop, main]
jobs:
assets:
name: Pre-build assets
uses: frappe/pilot/.github/workflows/app-assets.yml@develop
with:
# main supports Frappe v15 and v16; Pilot benches run v16 or later.
frappe-branch: ${{ github.ref_name == 'main' && 'version-16' || 'develop' }}
permissions:
contents: write