mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-26 03:51:21 -08:00
43 lines
No EOL
928 B
YAML
43 lines
No EOL
928 B
YAML
name: Linux
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'docs/**'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- 'catalog/**'
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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: 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 }} |