Skip to content

build additional unminified extension in gh actions (cf georchestra/m… #94

build additional unminified extension in gh actions (cf georchestra/m…

build additional unminified extension in gh actions (cf georchestra/m… #94

Workflow file for this run

name: "cadastrapp"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "checking out"
uses: actions/checkout@v2
- name: Checkout submodules
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: "setting up npm"
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: "cache node modules"
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: "install dependencies"
run: npm install
- name: "build"
run: npm run ext:build
- name: "publish zip as artifact"
uses: actions/upload-artifact@v1
with:
name: Cadastrapp-${{ github.sha }}
path: dist/Cadastrapp.zip
- name: "change webpack config to avoid minification"
run: sed -i -e 's/prod: true/prod: false/' build/extension/prod-webpack.config.js

Check failure on line 46 in .github/workflows/cadastrapp.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cadastrapp.yml

Invalid workflow file

You have an error in your yaml syntax on line 46
- name: "build unminified"
run: npm run ext:build
- name: "publish zip as artifact"
uses: actions/upload-artifact@v1
with:
name: Cadastrapp-unminified-${{ github.sha }}
path: dist/Cadastrapp.zip