Commit 793c8e2c authored by Joel Collins's avatar Joel Collins
Browse files

Condensed build:app into package

parent f1d30471
Loading
Loading
Loading
Loading
+3 −21
Original line number Diff line number Diff line
stages:
  - build
  - package
  - meta

# Cache modules in between jobs
@@ -9,7 +8,7 @@ cache:
  paths:
  - node_modules/

# Build basic webapp
# Basic webapp build
build:
  stage: build
  image: electronuserland/builder:wine
@@ -25,30 +24,13 @@ build:
    - tags
    - web

# Build electron webapp
build:electron:
# Electron app build
package:
  stage: build
  image: electronuserland/builder:wine
  script:
    - npm install
    - npm run build:app
  artifacts:
    name: "build"
    paths:
      - app/dist/
  only:
    - stable
    - tags
    - web

# Platform-specific Electron builds
package:
  stage: package
  dependencies:
    - build:electron
  image: electronuserland/builder:wine
  retry: 2
  script:
    - npm run release
    - mv ./release-builds/*.AppImage .
    - mv ./release-builds/*.deb .