Structure improve [Step4]: Add webversion mention to docs page #28
Workflow file for this run
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: Build Docs, Web-verion and Deploy | |
| on: [push, pull_request] | |
| jobs: | |
| build-docs_and_webver: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| #Documentation | |
| - name: Install packages for docs | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y doxygen | |
| - name: build doc | |
| run: make docs | |
| #Web-version | |
| - name: Install packages for webver | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y python3 cmake make | |
| - name: Setup Emscripten SDK | |
| uses: mymindstorm/setup-emsdk@v14 | |
| - name: Verify Emscripten | |
| run: emcc -v | |
| - name: Build SDL3 port for Emscripten | |
| run: embuilder build sdl3 | |
| - name: Build web-version | |
| run: make webver | |
| #Deploy to GitHub Pages | |
| - name: Deploy to GitHub Pages | |
| if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/web-integration-final') }} | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./doc/html/ | |
| enable_jekyll: false | |
| allow_empty_commit: false | |
| force_orphan: true |