push-master.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: Master
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. # publish to gh-pages (& IPFS when a release is detected)
  8. www:
  9. strategy:
  10. matrix:
  11. step: ['build:release:www']
  12. name: ${{ matrix.step }}
  13. if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/apps'"
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v1
  17. with:
  18. token: ${{ secrets.GH_PAT }}
  19. - name: ${{ matrix.step }}
  20. env:
  21. CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
  22. CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
  23. GH_PAGES_SRC: packages/apps/build
  24. GH_PAT: ${{ secrets.GH_PAT }}
  25. GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
  26. NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
  27. PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
  28. PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
  29. run: |
  30. yarn install --immutable | grep -v 'YN0013'
  31. yarn ${{ matrix.step }}
  32. # only run on "CI skip", i.e. when the actual version has been bumped to release/stable
  33. electron:
  34. strategy:
  35. matrix:
  36. os: [macos-latest, ubuntu-latest, windows-latest]
  37. runs-on: ${{ matrix.os }}
  38. if: "startsWith(github.event.head_commit.message, '[CI Skip] release/') && github.repository == 'polkadot-js/apps'"
  39. name: ${{ matrix.os }}
  40. steps:
  41. - uses: actions/checkout@v1
  42. with:
  43. token: ${{ secrets.GH_PAT }}
  44. - name: Build/release Electron app
  45. uses: samuelmeuli/action-electron-builder@v1
  46. with:
  47. # GitHub token, automatically provided to the action
  48. # (No need to define this secret in the repo settings)
  49. github_token: ${{ secrets.github_token }}
  50. build_script_name: build:release:electron
  51. # dummy, GH actions fails outright when all steps are skipped (like it can be above)
  52. dummy:
  53. runs-on: ubuntu-latest
  54. steps:
  55. - name: dummy
  56. run: |
  57. echo "Dummy skip step"