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: Generate docs and push to dedicated repo for publishing | |
| on: | |
| pull_request: | |
| branches: [develop, master] | |
| push: | |
| branches: [develop, master] | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: cachix/install-nix-action@v31.10.1 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: lomas | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Install devenv.sh | |
| run: nix profile add nixpkgs/68e77efe98d409641a4e25266914d225cd879798#devenv | |
| - name: Build with sphinx | |
| run: devenv shell -- build-docs | |
| - name: Set TMPDIR for mktemp | |
| run: echo "TMPDIR=/tmp" >> $GITHUB_ENV | |
| - name: Pushes to another repository | |
| if: github.event_name == 'push' || github.event_name == 'release' | |
| uses: cpina/github-action-push-to-another-repository@main | |
| env: | |
| SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY_DOCS }} | |
| with: | |
| source-directory: pages/ | |
| destination-github-username: 'dscc-admin-ch' | |
| destination-repository-name: 'lomas-docs' | |
| target-branch: main | |
| target-directory: html |