diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..e360cb1b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,56 @@ +# vim:sw=2:ts=2 +# build html version of docs +name: build + +# on events +on: + pull_request: + branches: + - master + - 'feature/*' + +jobs: + build: + runs-on: ubuntu-latest + name: build + + steps: + - uses: actions/checkout@v4 + - uses: sphinx-doc/github-problem-matcher@master + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Build docs + run: | + make clean html + + deploy: + runs-on: ubuntu-latest + name: deploy-on-merge + needs: build + + steps: + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: html_build + path: _build + if-no-files-found: error + + - name: Deploy docs + run: | + touch key + echo "" > key + sftp -i key -P 11022 sftpuser@81.15.242.168 < key + sftp -i key -P 11022 sftpuser@81.15.242.168 <