Update .gitlab-ci.yml file

This commit is contained in:
Paul Pabr 2022-09-21 16:56:02 +00:00
parent aa41dc8fdb
commit cb63416572

View File

@ -1,38 +1,32 @@
name: Build/release version: 2.1
on: push
jobs: jobs:
release: build:
runs-on: ${{ matrix.os }} working_directory: ~/repo
docker:
strategy: - image: circleci/node:11
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps: steps:
- name: Check out Git repository - checkout
uses: actions/checkout@v1 - 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 - save_cache:
uses: actions/setup-node@v1 key: dependency-cache-{{ checksum "package.json" }}
with: paths:
node-version: 14 - ./node_modules
- run:
name: Generate Builds
command: npm run make
- name: Installing dependencies - store_artifacts:
run: yarn path: ~/repo/out/make
- 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') }}