deploy-site.yml 906 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. - name: install
  14. run: npm install
  15. - name: build
  16. shell: bash
  17. run: bash ./scripts/_ci/deploy-pipelines.sh
  18. - name: deploy-to-surge
  19. uses: dswistowski/surge-sh-action@v1
  20. with:
  21. login: ${{ secrets.SURGE_LOGIN }}
  22. token: ${{ secrets.SURGE_TOKEN }}
  23. domain: https://ng-alain.surge.sh
  24. project: ./dist
  25. - name: deploy-to-gh-pages
  26. uses: peaceiris/actions-gh-pages@v2
  27. env:
  28. PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
  29. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  30. PUBLISH_BRANCH: gh-pages
  31. PUBLISH_DIR: ./dist
  32. with:
  33. emptyCommits: false