Skip to content

Commit

Permalink
Debian release artifact (#631)
Browse files Browse the repository at this point in the history
Add install script for linux which currently creates only .deb artifact
for debian based linux distributions. Also add github action for
creating linux release artifacts.
  • Loading branch information
mattnibs authored Apr 20, 2020
1 parent 71db838 commit 314f149
Show file tree
Hide file tree
Showing 7 changed files with 764 additions and 177 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/linux-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Brim linux release

on:
push:
tags:
- v*

jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Set NPM Cache Directory
id: set-npm-cache-dir
run: echo "::set-output name=npm_cache_dir::$(npm config get cache)"
- name: Clear Extraneous Runner Cache
run: rm -rf "${NPM_CACHE:?}"
env:
NPM_CACHE: ${{ steps.set-npm-cache-dir.outputs.npm_cache_dir }}
shell: bash
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules-ci-v4
with:
path: ${{ steps.set-npm-cache-dir.outputs.npm_cache_dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- run: npm install --no-audit
- run: npm run build
- name: build package
run: |
node ./scripts/release --linux
- name: upload release artifact
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: dist/installers/brim_amd64.deb
asset_name: brim_amd64.deb
overwrite: true
Loading

0 comments on commit 314f149

Please sign in to comment.