# This github-Evennia workflow will build the docs. name: documentation on: push: branches: [ master, develop ] paths: - 'docs/**' pull_request: branches: [ master, develop ] paths: - 'docs/**' jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: [3.7] steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - uses: actions/checkout@v2 if: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'}} with: fetch-depth: 0 run: | git config --global user.email "docbuilder@evennia.com" git config --global user.name "Evennia docbuilder action" python -m pip install --upgrade pip pip install -e . pip install -r requirements_extra.txt cd .. evennia --init gamedir cd gamedir evennia migrate cd ../evennia/docs/ make install make release