deploy-to-gh-pages.yml 805 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Build and Deploy
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. jobs:
  8. build-and-deploy:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout 🍔🍟🥤
  12. uses: actions/checkout@v2.3.1
  13. with:
  14. persist-credentials: false
  15. - name: Use Node.js 😂
  16. uses: actions/setup-node@v1
  17. with:
  18. node-version: '14.x'
  19. - name: Install and Build 🏭
  20. run: |
  21. npm i
  22. npm run pre-build
  23. npm run build-ci
  24. env:
  25. LESSON_BUILDER_ENV: production
  26. - name: Deploy 📦
  27. if: ${{ github.event_name == 'push' }}
  28. uses: JamesIves/github-pages-deploy-action@3.6.2
  29. with:
  30. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  31. BRANCH: gh-pages
  32. FOLDER: out
粤ICP备19079148号