2022-02-10 15:32:33 +00:00
|
|
|
name: Release recurring
|
|
|
|
# This workflow bakes executables of the major platforms for Testing purposes
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-02-14 17:21:45 +00:00
|
|
|
env:
|
|
|
|
PR_NUMBER: ${{ github.event.number }}
|
2022-02-10 15:32:33 +00:00
|
|
|
jobs:
|
|
|
|
build-and-upload-artifacts:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: "macos-latest"
|
|
|
|
build-targets: "zip"
|
|
|
|
- os: "windows-latest"
|
|
|
|
build-targets: "portable"
|
|
|
|
- os: "ubuntu-latest"
|
|
|
|
build-targets: "tar.gz"
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
|
|
|
|
- name: Bootstrap packages
|
|
|
|
run: npm run bootstrap
|
|
|
|
|
|
|
|
- name: Package
|
|
|
|
shell: bash
|
2022-02-14 18:56:07 +00:00
|
|
|
run: BUILD_REF="$(git rev-parse --short HEAD)${{ github.event_name == 'pull_request' && '.pr-$PR_NUMBER' || '' }}" BUILD_TARGETS='${{ matrix.build-targets }}' npm run app-package
|
2022-02-10 15:32:33 +00:00
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
if-no-files-found: ignore
|
|
|
|
name: ${{ matrix.os }}-artifacts-${{ github.run_number }}
|
|
|
|
path: |
|
|
|
|
packages/insomnia-app/dist/*.exe
|
|
|
|
packages/insomnia-app/dist/*.tar.gz
|
|
|
|
packages/insomnia-app/dist/*.zip
|