wiki.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # SuperTux
  2. # Copyright (C) 2021 Mathnerd314
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License
  6. # as published by the Free Software Foundation; either version 3
  7. # of the License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. name: wiki
  18. on:
  19. gollum
  20. jobs:
  21. update-wiki-repo:
  22. runs-on: ubuntu-20.04
  23. steps:
  24. - name: Checkout the .wiki repo
  25. uses: actions/checkout@v4
  26. with:
  27. repository: 'SuperTux/supertux.wiki'
  28. fetch-depth: 100
  29. - name: Install SSH key
  30. uses: shimataro/ssh-key-action@v2
  31. with:
  32. key: ${{ secrets.wiki_repo_key }}
  33. known_hosts: ${{ secrets.wiki_repo_hosts }}
  34. - name: Update the wiki
  35. run: |
  36. git --version
  37. git config --global user.email "supertux-bot"
  38. git config --global user.name "SuperTux Bot"
  39. git pull --rebase git@github.com:SuperTux/wiki.git master
  40. git push git@github.com:SuperTux/wiki.git HEAD:master
  41. git push -f git@github.com:SuperTux/supertux.wiki.git HEAD:master