cli: add -I and -P short options for --insecure and --proxy #148
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: doc | |
| on: | |
| push: | |
| branches: ['**'] | |
| paths: | |
| - "crates/*/doc/**" | |
| - "doc/**" | |
| - ".github/workflows/doc.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "crates/*/doc/**" | |
| - "doc/**" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: asciidoctor/docker-asciidoctor | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build docs | |
| run: | | |
| make -C doc | |
| # notify github this isn't a jekyll site | |
| touch target/doc/cli/html/.nojekyll | |
| # upload-pages-artifact doesn't work with busybox tar provided by the container | |
| - name: Install GNU tar | |
| if: ${{ github.ref_name == 'main' && github.repository == 'radhermit/bugbite' }} | |
| run: apk add tar | |
| - name: Upload artifact | |
| if: ${{ github.ref_name == 'main' && github.repository == 'radhermit/bugbite' }} | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: target/doc/cli/html | |
| deploy: | |
| if: ${{ github.ref_name == 'main' && github.repository == 'radhermit/bugbite' }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |