12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- name: Scripting
- on:
- push:
- branches: [ "master" ]
- paths:
- - src/scripting/*.hpp
- workflow_dispatch:
- jobs:
- scripting-update:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout the repository
- uses: actions/checkout@v3
- with:
- fetch-depth: 1
- - name: Checkout the wiki repository
- uses: actions/checkout@v3
- with:
- repository: SuperTux/wiki
- path: wiki
- fetch-depth: 1
- - name: Install packages
- run: |
- sudo apt-get update
- sudo apt-get install -y \
- cmake \
- build-essential \
- g++-9 \
- libc++-dev \
- libtinyxml2-dev \
- doxygen
- - name: Build scripting reference generator
- working-directory: tools/scripting_docs_gen
- run: |
- cmake --version
- mkdir build
- cd build
- cmake .. -DBUILD_SCRIPTING_DOCUMENTATION=ON
- make
- - name: Generate scripting reference
- working-directory: tools/scripting_docs_gen/build
- run: |
- doxygen docs/scripting/Doxyfile
- rm ../../../wiki/Scripting*.md
- ./ScriptingDocsGen --dir docs/scripting/doxygen/xml \
- --home ../../../wiki/templates/ScriptingHome.md \
- --page ../../../wiki/templates/ScriptingPage.md \
- --output ../../../wiki
- - name: Install SSH key
- uses: shimataro/ssh-key-action@v2
- with:
- key: ${{ secrets.wiki_repo_key }}
- known_hosts: ${{ secrets.wiki_repo_hosts }}
- - name: Push changes to wiki
- working-directory: wiki
- run: |
- git --version
- git status
- git config --global user.email "supertux-bot"
- git config --global user.name "SuperTux Bot"
- git add .
- git commit -m "Update scripting reference (SuperTux/supertux@${{ github.sha }})"
- git push git@github.com:SuperTux/wiki.git HEAD:master
|