lbry-desktop/.github/workflows/deploy.yml

98 lines
2.8 KiB
YAML
Raw Normal View History

2020-11-19 14:31:11 -05:00
name: Node.js CI
on:
push:
2020-12-01 12:56:59 -05:00
branches: [master]
2020-11-19 14:31:11 -05:00
pull_request:
2020-12-01 12:56:59 -05:00
branches: [master]
2020-11-19 14:31:11 -05:00
jobs:
2020-12-01 12:56:59 -05:00
lint:
2020-12-08 16:50:10 -05:00
name: lint
runs-on: ubuntu-latest
2020-12-01 12:56:59 -05:00
steps:
- uses: actions/checkout@v2
- uses: Borales/actions-yarn@v2.3.0
- run: yarn lint
2020-11-19 14:31:11 -05:00
2020-12-01 12:56:59 -05:00
build:
needs: ['lint']
2020-12-08 16:50:10 -05:00
name: 'build'
2020-11-19 14:31:11 -05:00
strategy:
matrix:
node-version: [12.x, 14.x]
2020-12-08 16:50:10 -05:00
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
2020-11-19 14:31:11 -05:00
steps:
2020-12-01 12:56:59 -05:00
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
2020-12-08 16:50:10 -05:00
2020-12-08 18:02:31 -05:00
- uses: maxim-lobanov/setup-xcode@v1
if: startsWith(runner.os, 'mac')
with:
xcode-version: '10.3.0'
- name: Download blockchain headers
run: |
mkdir -p ./static/daemon
curl -o ./static/daemon/headers https://headers.lbry.io/blockchain_headers_latest
ls ./static/daemon
2020-12-08 16:50:10 -05:00
- name: Build
run: |
yarn global add cross-env
yarn
yarn build
node ./build/afterSignHook.js
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NOTARIZATION_USERNAME: ${{ secrets.NOTARIZATION_USERNAME }}
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
WIN_CSC_LINK: https://s3.amazonaws.com/files.lbry.io/cert/win-csc-2020-2021-08.p12
CSC_LINK: https://s3.amazonaws.com/files.lbry.io/cert/osx-cert.p12
# UI
MATOMO_URL: https://analytics.lbry.com/
MATOMO_ID: 4
WELCOME_VERSION: 1.0
DOMAIN: lbry.tv
URL: https://lbry.tv
2021-01-25 13:44:41 -05:00
SHARE_DOMAIN_URL: https://open.lbry.com
2020-12-08 16:50:10 -05:00
SITE_TITLE: lbry.tv
SITE_NAME: lbry.tv
SHOW_ADS: false
2020-12-28 14:57:27 -05:00
YRBL_HAPPY_IMG_URL: https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-happy/7aa50a7e5adaf48691935d55e45d697547392929/839d9a
YRBL_SAD_IMG_URL: https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd
2020-12-08 16:50:10 -05:00
ENABLE_COMMENT_REACTIONS: true
DEFAULT_LANGUAGE: en
KNOWN_APP_DOMAINS: lbry.tv,lbry.lat,odysee.com
- uses: actions/upload-artifact@v2
2021-01-21 14:28:24 -05:00
if: |
startsWith(runner.os, 'linux')
2020-12-08 16:50:10 -05:00
with:
name: Linux
2020-12-28 16:23:42 -05:00
path: ./dist/electron/*.*
2020-12-08 16:50:10 -05:00
- uses: actions/upload-artifact@v2
2021-01-21 14:28:24 -05:00
if: |
startsWith(runner.os, 'mac')
2020-12-08 16:50:10 -05:00
with:
name: macOS
2020-12-28 16:23:42 -05:00
path: ./dist/electron/*.*
2020-12-08 16:50:10 -05:00
- uses: actions/upload-artifact@v2
2021-01-21 14:28:24 -05:00
if: |
github.event.pull_request.head.repo.full_name == github.repository
2020-12-08 16:50:10 -05:00
with:
name: Windows
2020-12-28 16:23:42 -05:00
path: ./dist/electron/*.*