deploy.yml 742 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Build And Deploy v3-admin-vite
  2. on:
  3. push:
  4. branches:
  5. - main
  6. jobs:
  7. build-and-deploy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v2
  12. with:
  13. persist-credentials: false
  14. - name: Setup Node.js 20.10.0
  15. uses: actions/setup-node@master
  16. with:
  17. node-version: 20.10.0
  18. - name: Setup pnpm
  19. uses: pnpm/action-setup@v2
  20. with:
  21. version: 8.11.0
  22. - name: Build
  23. run: pnpm install && pnpm build:prod
  24. - name: Deploy
  25. uses: JamesIves/github-pages-deploy-action@releases/v3
  26. with:
  27. ACCESS_TOKEN: ${{ secrets.V3_ADMIN_VITE }}
  28. BRANCH: gh-pages
  29. FOLDER: dist