deploy.yml 576 B

12345678910111213141516171819202122
  1. name: Deploy CI
  2. on: [push]
  3. jobs:
  4. build-and-deploy:
  5. runs-on: ubuntu-latest
  6. if: github.ref == 'master'
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@master
  10. - run: yarn
  11. - run: yarn run lint
  12. - run: yarn run tsc
  13. - name: Build and Deploy
  14. uses: JamesIves/github-pages-deploy-action@master
  15. env:
  16. ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: site
  17. GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
  18. BRANCH: gh-pages
  19. FOLDER: 'dist/'
  20. BUILD_SCRIPT: yarn && npm run deploy