62 lines
1.9 KiB
YAML
62 lines
1.9 KiB
YAML
name: Master
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
release-www:
|
|
strategy:
|
|
matrix:
|
|
step: ['build:release:www']
|
|
name: ${{ matrix.step }}
|
|
if: "! contains(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/apps'"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
token: ${{ secrets.GH_PAT }}
|
|
- name: ${{ matrix.step }}
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
GH_PAGES_SRC: packages/apps/build
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
|
|
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
|
|
run: |
|
|
yarn install --immutable | grep -v 'YN0013'
|
|
yarn ${{ matrix.step }}
|
|
release-electron:
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
if: "! contains(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/apps'"
|
|
name: ${{ matrix.step }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
token: ${{ secrets.GH_PAT }}
|
|
|
|
- name: Build/release Electron app
|
|
uses: samuelmeuli/action-electron-builder@v1
|
|
with:
|
|
# GitHub token, automatically provided to the action
|
|
# (No need to define this secret in the repo settings)
|
|
github_token: ${{ secrets.github_token }}
|
|
build_script_name: build:release:electron
|
|
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
|
# release the app after building
|
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
dummy:
|
|
name: Dummy
|
|
if: "contains(github.event.head_commit.message, '[CI Skip]')"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: dummy
|
|
run: |
|
|
echo "Dummy skip step"
|