docs: add status command section and link to HARDWARE.md #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Wiki | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'README.md' | |
| - 'radfu.h2m' | |
| - 'CONTRIBUTING.md' | |
| - 'LEGAL.md' | |
| - 'scripts/generate-wiki.sh' | |
| workflow_dispatch: | |
| jobs: | |
| update-wiki: | |
| name: Update Wiki | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y meson ninja-build help2man groff | |
| - name: Build radfu and man page | |
| run: | | |
| meson setup build -Dtests=false | |
| meson compile -C build | |
| - name: Generate wiki pages | |
| run: ./scripts/generate-wiki.sh wiki | |
| - name: Checkout wiki | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ${{ github.repository }}.wiki | |
| path: wiki-repo | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update wiki | |
| run: | | |
| cp wiki/*.md wiki-repo/ | |
| cd wiki-repo | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add -A | |
| if git diff --staged --quiet; then | |
| echo "No changes to commit" | |
| else | |
| git commit -m "Update wiki from README.md and man page" | |
| git push | |
| fi |