mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
|
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 }}
|