insomnia/.github/workflows/release-core.yml
Gregory Schier ec81568d43
Add Snapcraft release to Core and Designer (#2268)
* Try building snap package

* Custom snap workflow

* Fix names

* Put back node install

* Try moving env

* Add fontconfig lib

* Fix libfontconfig-dev

* Fix git tag priority

* Fix env

* Fix git ref

* Wow, fix ref again

* Remove Node 10 requirement

* Wow I'm silly

* Back to Node 10

* Ditch electron-builder Docker container

* Try apt-get witihout sudo

* Try snapcraft action

* Install snapcraft

* Log into snapcraft

* Install correct version of snapcraft

* Install snapcraft via snap

* Change Designer executable name

* Publish snap to stable

* Try snap store publish overrides

* Fix buildContext reference

* Delete debug release-snap workflow

* Remove electron-builder container

* Remove unnecessary env

* Add back node 10 version check

* Revert non-working snap channel override
2020-06-09 17:32:01 -07:00

63 lines
1.7 KiB
YAML

name: Release Core
on:
push:
tags:
- core@*
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_REF: ${{ github.ref }}
GITHUB_SHA: ${{ github.sha }}
NPM_CONFIG_TARGET: 3.1.13
NPM_CONFIG_DISTURL: https://electronjs.org/headers
NPM_CONFIG_RUNTIME: electron
jobs:
Windows:
name: Windows
runs-on: windows-2016
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm run bootstrap
- run: npm test
- run: npm run app-release
env:
CSC_LINK: ${{ secrets.CORE_WINDOWS_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CORE_WINDOWS_CSC_KEY_PASSWORD }}
Mac:
name: Mac
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm run bootstrap
- run: npm test
- run: npm run app-release
env:
APPLE_ID: ${{ secrets.CORE_APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.CORE_APPLE_ID_PASSWORD }}
CSC_LINK: ${{ secrets.CORE_MAC_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CORE_MAC_CSC_KEY_PASSWORD }}
Linux:
name: Linux
runs-on: ubuntu-latest
steps:
- run: |
sudo snap install snapcraft --classic
echo "${{ secrets.SNAPCRAFT_LOGIN_FILE }}" > snapcraft.txt && snapcraft login --with snapcraft.txt
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm run bootstrap
- run: npm test
- run: npm run app-release
env:
BUILD_TARGETS: AppImage,deb,tar.gz,rpm,snap