Davide Pesavento | 3c7f645 | 2021-10-02 04:06:26 -0400 | [diff] [blame] | 1 | name: Docs |
| 2 | on: |
| 3 | push: |
Davide Pesavento | 3c7f645 | 2021-10-02 04:06:26 -0400 | [diff] [blame] | 4 | workflow_dispatch: |
Davide Pesavento | 7228e53 | 2023-02-18 02:26:45 -0500 | [diff] [blame] | 5 | inputs: |
| 6 | skip-deploy: |
| 7 | description: 'Skip deployment?' |
| 8 | required: true |
| 9 | type: boolean |
Davide Pesavento | 3c7f645 | 2021-10-02 04:06:26 -0400 | [diff] [blame] | 10 | |
Davide Pesavento | 7228e53 | 2023-02-18 02:26:45 -0500 | [diff] [blame] | 11 | permissions: {} |
Davide Pesavento | 3c7f645 | 2021-10-02 04:06:26 -0400 | [diff] [blame] | 12 | |
| 13 | jobs: |
Davide Pesavento | 7228e53 | 2023-02-18 02:26:45 -0500 | [diff] [blame] | 14 | html: |
| 15 | uses: named-data/actions/.github/workflows/docs-html.yml@v1 |
| 16 | with: |
| 17 | # Deploy the 'new' branch as 'latest' |
| 18 | deploy: ${{ !inputs.skip-deploy && github.ref == 'refs/heads/new' }} |
| 19 | project: NAC |
| 20 | version: latest |
| 21 | secrets: inherit |