Repository navigation
Update readme #22
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 the thesis and deploy on GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v27 | |
| - name: Build thesis PDF | |
| run: nix build --print-build-logs | |
| - name: Upload thesis PDF | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: thesis.pdf | |
| path: result/thesis.pdf | |
| deploy: | |
| needs: build | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Download thesis PDF | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: thesis.pdf | |
| path: github-pages/ | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: github-pages/ | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |