123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- name: Master
- on:
- push:
- branches:
- - master
- jobs:
- # publish to gh-pages (& IPFS when a release is detected)
- www:
- strategy:
- matrix:
- step: ['build:release:www']
- name: ${{ matrix.step }}
- if: "! startsWith(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 }}
- CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
- GH_PAGES_SRC: packages/apps/build
- GH_PAT: ${{ secrets.GH_PAT }}
- GH_RELEASE_GITHUB_API_TOKEN: ${{ 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 }}
- # only run on "CI skip", i.e. when the actual version has been bumped to release/stable
- electron:
- strategy:
- matrix:
- os: [macos-latest, ubuntu-latest, windows-latest]
- runs-on: ${{ matrix.os }}
- if: "startsWith(github.event.head_commit.message, '[CI Skip] release/') && github.repository == 'polkadot-js/apps'"
- name: ${{ matrix.os }}
- 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
- # dummy, GH actions fails outright when all steps are skipped (like it can be above)
- dummy:
- runs-on: ubuntu-latest
- steps:
- - name: dummy
- run: |
- echo "Dummy skip step"
|