build.yml 662 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Build Pages
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - '**.ts'
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Install dependencies
  14. run: |
  15. sudo apt-get update
  16. sudo apt-get install -y qttools5-dev-tools gettext
  17. - name: Build translations
  18. run: |
  19. ./release.sh
  20. - name: Move directory
  21. run: |
  22. mv build _site
  23. cp .github/CNAME _site/CNAME
  24. - name: Deploy
  25. uses: peaceiris/actions-gh-pages@v3
  26. with:
  27. publish_dir: ./_site
  28. github_token: ${{ secrets.GITHUB_TOKEN }}