TidGi-Desktop/.github/workflows/linux.yml
2019-12-08 14:05:22 -06:00

46 lines
No EOL
1 KiB
YAML

name: Linux
on:
push:
branches:
- master
tags:
- "v*.*.*"
paths-ignore:
- 'catalog/**'
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'catalog/**'
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: false
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
with:
snapcraft_token: ${{ secrets.SNAP_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: yarn
- run: yarn lint
- name: Get tag name
run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//}
if: startsWith(github.ref, 'refs/tags/')
- run: yarn dist
env:
CI: true
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REACT_APP_LICENSE_SECRET: ${{ secrets.REACT_APP_LICENSE_SECRET }}