trigger-site-rebuild.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Trigger site rebuild
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. if: "!contains(github.event.head_commit.message, 'skip-ci')"
  10. steps: [
  11. { name: 'Checkout', uses: actions/checkout@v4, with: { fetch-depth: 1 } },
  12. { name: 'Install Python', uses: actions/setup-python@v4, with: { python-version: 3.10.5, architecture: x64 } },
  13. {
  14. name: 'Create archives',
  15. run: 'python create_archives.py'
  16. },
  17. {
  18. name: "Create tag",
  19. run: 'git tag v${{ github.sha }}'
  20. },
  21. {
  22. name: "Push to tag",
  23. run: 'git push origin v${{ github.sha }}'
  24. },
  25. {
  26. name: 'Release',
  27. uses: softprops/action-gh-release@v2,
  28. with: { files: "*.zip", make_latest: true, tag_name: 'v${{ github.sha }}' }
  29. },
  30. {
  31. name: 'Repository dispatch',
  32. uses: defold/[email protected],
  33. with: {
  34. repo: 'defold/defold.github.io',
  35. token: '${{ secrets.SERVICES_GITHUB_TOKEN }}',
  36. user: '[email protected]',
  37. action: 'examples'
  38. }
  39. }
  40. ]