-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
7 changed files
with
764 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.