TidGi-Desktop/.github/workflows/windows.yml

33 lines
No EOL
690 B
YAML

name: Windows
on:
push:
tags:
- "v*.*.*"
paths-ignore:
- 'README.md'
- 'docs/**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install and Cache node modules
uses: bahmutov/npm-install@v1
- name: Get tag name
run: echo ::set-env name=CI_BUILD_TAG::${GITHUB_REF/refs\/tags\//}
if: startsWith(github.ref, 'refs/tags/')
- run: npm run dist
env:
CI: true
CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}