main.yml 714 B

12345678910111213141516171819202122232425262728293031323334
  1. # Created by MichaelCurrin
  2. # https://gist.github.com/MichaelCurrin/a698731096f78240f653faf9a9127cba
  3. name: Build and deploy
  4. on:
  5. push:
  6. branches:
  7. - master
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/setup-node@v3
  13. with:
  14. node-version: 16
  15. - name: Checkout ๐Ÿ›Ž๏ธ
  16. uses: actions/checkout@master
  17. with:
  18. persist-credentials: false
  19. - name: Install ๐Ÿ”ง
  20. run: yarn install
  21. - name: Build ๐Ÿ—๏ธ
  22. run: |
  23. yarn build
  24. - name: Deploy to GH Pages ๐Ÿš€
  25. uses: peaceiris/actions-gh-pages@v3
  26. with:
  27. github_token: ${{ secrets.GITHUB_TOKEN }}
  28. publish_dir: dist