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

42 lines
No EOL
909 B
YAML

name: Windows
on:
push:
branches:
- master
tags:
- "v*.*.*"
paths-ignore:
- 'catalog/**'
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'catalog/**'
- 'docs/**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: false
- 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 }}