gazprea: Strings are only vectors of chars #205
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: Deploy 415-docs Github Pages site | |
| # controls when the workflow will run | |
| on: | |
| # triggers the workflow on push or pull request events but only for the "master" branch | |
| push: | |
| branches: [ "master" ] | |
| # you can run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install requirements | |
| run: pip install -r requirements.txt | |
| - name: Install latexmk | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y latexmk | |
| latexmk --version | |
| # required for making pdfs with latex (https://stackoverflow.com/questions/50431961/how-to-install-only-cmap-sty-required-packages-in-my-machine) | |
| - name: Install cmap.sty | |
| run: sudo apt-get install texlive-latex-extra | |
| - name: Clean docs | |
| run: make clean | |
| - name: Build docs | |
| run: make github | |
| - name: Create github-pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| # Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
| permissions: | |
| pages: write # to deploy to Pages | |
| id-token: write # to verify the deployment originates from an appropriate source | |
| # Deploy to the github-pages environment | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |