push-master.yml 830 B

1234567891011121314151617181920212223242526272829303132
  1. name: Master
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build_code:
  8. name: Build Code
  9. if: "! contains(github.event.head_commit.message, '[CI Skip]')"
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. node-version: [12.x]
  14. steps:
  15. - uses: actions/checkout@v1
  16. with:
  17. token: ${{ secrets.GH_PAT }}
  18. - name: Use Node.js ${{ matrix.node-version }}
  19. uses: actions/setup-node@v1
  20. with:
  21. node-version: ${{ matrix.node-version }}
  22. - name: build
  23. env:
  24. CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
  25. GH_PAGES_SRC: packages/apps/build
  26. GH_PAT: ${{ secrets.GH_PAT }}
  27. NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
  28. run: |
  29. yarn install --frozen-lockfile
  30. yarn polkadot-dev-ghact-build
  31. yarn polkadot-dev-ghact-docs