insomnia/.github/workflows/release-core.yml

52 lines
1.5 KiB
YAML
Raw Normal View History

2020-04-26 20:33:39 +00:00
name: Release Core
on:
push:
tags:
- core@*
jobs:
Windows:
name: Windows
runs-on: windows-2016
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Install NodeJS
uses: actions/setup-node@v1
with:
node-version: 10
- name: Install node tools
run: npm install --global --production windows-build-tools@4
- name: Set node config to use python2.7
run: npm config set python python2.7
- name: Set node config to set msvs_version to 2015
run: npm config set msvs_version 2015
- name: Bootstrap packages
run: npm run bootstrap
- name: Run tests
run: npm test
- name: Release app
env:
GITHUB_REF: ${{ github.ref }}
GITHUB_SHA: ${{ github.sha }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CSC_LINK: ${{ secrets.WINDOWS_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }}
run: npm run app-release
Linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Run Docker
uses: ./.github/actions/release-linux
env:
GITHUB_REF: ${{ github.ref }}
GITHUB_SHA: ${{ github.sha }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODELIBCURL_BUILD_STATIC: yes
BUILD_TARGETS: AppImage,Snap
SNAPCRAFT_LOGIN_FILE: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}