deploy-site.yml 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Deploy website
  2. # on: push
  3. on:
  4. push:
  5. branches:
  6. - 'publish-**'
  7. jobs:
  8. build-and-deploy:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: checkout
  12. uses: actions/checkout@master
  13. - uses: borales/actions-yarn@v2.3.0
  14. with:
  15. cmd: install
  16. - name: build
  17. shell: bash
  18. run: bash ./scripts/_ci/deploy-pipelines.sh
  19. - name: deploy-to-surge
  20. uses: dswistowski/surge-sh-action@v1
  21. with:
  22. login: ${{ secrets.SURGE_LOGIN }}
  23. token: ${{ secrets.SURGE_TOKEN }}
  24. domain: https://ng-alain.surge.sh
  25. project: ./dist
  26. - name: deploy-to-gh-pages
  27. uses: peaceiris/actions-gh-pages@v2
  28. env:
  29. PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
  30. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  31. PUBLISH_BRANCH: gh-pages
  32. PUBLISH_DIR: ./dist
  33. with:
  34. emptyCommits: false