Fix 2 commands and a link in /faqs (#118) #516
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
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| # Build job | |
| build: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the Git repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Cache Python environment | |
| uses: actions/cache@v4 | |
| id: cache-python | |
| with: | |
| path: .venv | |
| key: .venv-${{ hashFiles('requirements.txt') }} | |
| - name: Install base Apt packages | |
| id: cache-apt | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| execute_install_scripts: true | |
| packages: graphviz libgraphviz-dev librsvg2-bin pdf2svg enchant-2 | |
| version: 1.0 | |
| - name: Apt-Cache-Action | |
| uses: Eeems-Org/[email protected] | |
| with: | |
| packages: texlive-base texlive-latex-extra | |
| - name: Build website | |
| shell: bash | |
| run: make -j $(nproc) prod | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "dist" | |
| deploy: | |
| needs: build | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # - name: Create Sentry release | |
| # uses: getsentry/action-release@v1 | |
| # env: | |
| # SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| # SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
| # SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
| # SENTRY_URL: ${{ secrets.SENTRY_URL }} | |
| # with: | |
| # environment: production |