build.yml 459 B

12345678910111213141516171819202122
  1. name: Build wiki
  2. on:
  3. push:
  4. branches:
  5. master
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v4
  11. with:
  12. fetch-depth: 0
  13. ssh-key: ${{ secrets.TOKEN }}
  14. - name: Push to wiki
  15. env:
  16. TOKEN: ${{ secrets.TOKEN }}
  17. if: env.TOKEN != ''
  18. run: |
  19. git remote add upstream git@github.com:yt-dlp/yt-dlp.wiki
  20. git fetch upstream
  21. git push --force upstream master