ci.yml 445 B

123456789101112131415161718192021222324252627
  1. name: CI
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build-and-deploy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v1
  12. - name: 打包构建
  13. run: |
  14. npm install
  15. npm run build
  16. - name: 发布
  17. uses: JamesIves/github-pages-deploy-action@releases/v3
  18. with:
  19. ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
  20. BRANCH: gh-pages
  21. FOLDER: dist