From cb6341657255d85369407a0fc7ec31738826b31f Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 21 Sep 2022 16:56:02 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 62 +++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 34 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81eb449..70e3a95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,38 +1,32 @@ -name: Build/release - -on: push - +version: 2.1 jobs: - release: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [macos-latest, ubuntu-latest, windows-latest] - + build: + working_directory: ~/repo + docker: + - image: circleci/node:11 steps: - - name: Check out Git repository - uses: actions/checkout@v1 + - checkout + - run: + name: Update NPM + command: "sudo npm install -g npm" + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: Install Dependencies + command: npm install + - run: + name: Install dpkg and fakeroot + command: | + sudo apt-get update -y + sudo apt-get install -y dpkg fakeroot - - name: Install Node.js, NPM and Yarn - uses: actions/setup-node@v1 - with: - node-version: 14 + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: + name: Generate Builds + command: npm run make - - name: Installing dependencies - run: yarn - - - name: Tsc - run: npx tsc - - - name: Build/release Electron app - uses: ./.github/actions/release - with: - skip_build: false - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.DEPLOY_TOKEN }} - - # If the commit is tagged with a version (e.g. "v1.0.0"), - # release the app after building - release: ${{ startsWith(github.ref, 'refs/tags/v') }} \ No newline at end of file + - store_artifacts: + path: ~/repo/out/make \ No newline at end of file