gitee.yml 893 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Build and Deploy
  2. permissions:
  3. contents: write
  4. on:
  5. push:
  6. branches:
  7. - master
  8. jobs:
  9. deploy:
  10. concurrency: ci-${{ github.ref }}
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout 🛎️
  14. uses: actions/checkout@v3
  15. - name: Setup node
  16. uses: actions/setup-node@v2
  17. with:
  18. node-version: "16"
  19. registry-url: https://registry.npmjs.com/
  20. - name: Setup pnpm
  21. uses: pnpm/action-setup@v2
  22. with:
  23. version: latest
  24. - name: Deploy 🔧
  25. run: |
  26. pnpm install
  27. sed -i "s#VITE_PUBLIC_PATH = /#VITE_PUBLIC_PATH = /vue-pure-admin/#g" $(pwd)/.env.production
  28. pnpm build
  29. cd dist
  30. touch README.md .nojekyll
  31. - name: Deploy 🚀
  32. uses: JamesIves/github-pages-deploy-action@v4
  33. with:
  34. folder: dist
  35. clean: true