Browse Source

fix: Don't use bench docker image

version-14
Gavin D'souza 4 years ago
parent
commit
f398be17cc
1 changed files with 13 additions and 8 deletions
  1. +13
    -8
      .github/workflows/publish-assets.yml

+ 13
- 8
.github/workflows/publish-assets.yml View File

@@ -1,23 +1,28 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Build Assets on develop and Publish to Public bucket
name: Build and Publish Assets built

on:
push:
branches: [ develop ]
branches: [ build-assets ] # for testing only
# branches: [ develop ]

jobs:
build:
runs-on: ubuntu-latest
container: frappe/bench:latest

steps:
- uses: actions/setup-node@v1
with:
python-version: '12.x'
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set up bench
run: |
sudo -H -u frappe bash -c 'bench init frappe-bench --skip-assets --python $(which python)'
npm install -g yarn
pip3 install -U frappe-bench
bench init frappe-bench --skip-assets --python $(which python)
cd frappe-bench/apps/frappe && git checkout $GITHUB_SHA
sudo -H -u frappe bash -c 'bench build'
bench build

- name: Package assets
run: |


Loading…
Cancel
Save