refactor(queries): using frappe.get_query in `get_filtered_child_ro…
#1458
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Upload Assets | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - 'version-*' | |
| concurrency: | |
| group: build-assets-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-assets: | |
| name: Build JS/CSS and upload to release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: frappe/frappe | |
| path: apps/frappe | |
| ref: ${{ github.ref_name }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: apps/erpnext | |
| - name: Create bench structure | |
| run: | | |
| mkdir -p sites | |
| printf "frappe\nerpnext\n" > sites/apps.txt | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: yarn | |
| cache-dependency-path: apps/frappe/yarn.lock | |
| - name: Install frappe JS dependencies | |
| working-directory: apps/frappe | |
| run: yarn install --frozen-lockfile | |
| - name: Install erpnext JS dependencies | |
| working-directory: apps/erpnext | |
| run: yarn install --frozen-lockfile --ignore-scripts | |
| - name: Link node_modules into public/ | |
| working-directory: apps/frappe | |
| run: ln -s "$PWD/node_modules" frappe/public/node_modules | |
| - name: Build assets (production) | |
| working-directory: apps/frappe | |
| run: yarn run production | |
| - name: Package assets | |
| working-directory: apps/erpnext | |
| run: tar czf erpnext-assets.tar.gz -C ../../sites/assets/erpnext dist | |
| - name: Upload to rolling release | |
| working-directory: apps/erpnext | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| TAG="assets-${GITHUB_REF_NAME//\//-}" | |
| gh release create "$TAG" --prerelease --title "Assets: $GITHUB_REF_NAME" --notes "" 2>/dev/null || true | |
| gh release upload "$TAG" erpnext-assets.tar.gz --clobber |