Add --max-artifact-size flag to GitHub, Azure DevOps, BitBucket, and … #55
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 CLI Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-deploy-docs: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: src/pipeleak | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{steps.deployment.outputs.page_url}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.x' | |
| - name: Install MkDocs | |
| run: | | |
| pip install \ | |
| mkdocs \ | |
| mkdocs-material \ | |
| mkdocs-minify-plugin | |
| - name: Generate Docs | |
| run: go run main.go docs --github-pages | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload Artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: 'src/pipeleak/cli-docs/site/' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |