env: BUILD_DEPENDENCIES: git make mkdocs python3-markdown-include on: push: branches: - main jobs: test: runs-on: codeberg-small-lazy container: image: debian:latest steps: - name: Install OS Dependencies run: | apt-get update apt-get install --yes $BUILD_DEPENDENCIES - name: Clone Repository run: | mkdir app git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} app - name: Build docs run: | cd app make docs - name: Copy all files run: | cp -r app/docs/site/* . rm -rf app - name: Deploy with git run: | git init git config --global user.name "Codeberg Pages" git config --global user.email "" git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@codeberg.org/eduVPN/eduvpn-common git checkout -b pages git add --all git commit -am "Pages: Deploy $GITHUB_SHA" && git push --force -u origin pages