Restore show more link in AAQ listing (#7405) #218
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: Publish Docs in GitHub Pages | |
| on: | |
| workflow_dispatch: # allow manual runs | |
| push: | |
| branches: | |
| - main | |
| paths: # avoid building unless needed | |
| - docs/** | |
| - mkdocs.yml | |
| - kitsune/sumo/static/sumo/scss/** | |
| - styleguide/** | |
| - .github/workflows/publish-docs.yml | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: github-pages | |
| cancel-in-progress: false # skip any intermediate builds but let finish | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: 3.x | |
| cache: pip | |
| - id: pages | |
| uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 | |
| - name: Build docs | |
| run: | | |
| pip install mkdocs-material | |
| mkdocs build -d site | |
| - name: Build styleguide | |
| run: | | |
| npm ci | |
| npm run build:styleguide | |
| mkdir site/_kss | |
| cp -r styleguide/build/. site/_kss/ | |
| - uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4 | |
| with: | |
| path: site | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 |