sync_packagerefs.yml 838 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Sync Packagerefs
  2. on:
  3. schedule: # execute every 24 hours
  4. - cron: "0 */24 * * *"
  5. jobs:
  6. build:
  7. strategy:
  8. matrix:
  9. os: [ubuntu-latest]
  10. runs-on: ${{ matrix.os }}
  11. steps:
  12. - uses: actions/checkout@v1
  13. - uses: xmake-io/github-action-setup-xmake@v1
  14. with:
  15. xmake-version: branch@master
  16. - name: Install SSH key
  17. uses: shimataro/ssh-key-action@v2
  18. with:
  19. key: ${{ secrets.SSH_KEY }}
  20. name: id_rsa # optional
  21. known_hosts: ${{ secrets.KNOWN_HOSTS }}
  22. - name: Build artifacts for packagerefs
  23. if: ${{ github.repository }} == "xmake-io/xmake-repo"
  24. run: |
  25. git config --global user.email "[email protected]"
  26. git config --global user.name "ruki"
  27. xmake l scripts/build_artifacts.lua true