Mohammed Naser | 7f3eb56 | 2024-01-23 16:49:57 -0500 | [diff] [blame^] | 1 | name: docs |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | paths: |
| 6 | - 'docs/**' |
| 7 | push: |
| 8 | branches: |
| 9 | - main |
| 10 | paths: |
| 11 | - 'docs/**' |
| 12 | |
| 13 | permissions: |
| 14 | contents: write |
| 15 | pull-requests: write |
| 16 | |
| 17 | jobs: |
| 18 | build: |
| 19 | runs-on: ubuntu-latest |
| 20 | steps: |
| 21 | - name: Checkout project |
| 22 | uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 |
| 23 | |
| 24 | - name: Install Earthly |
| 25 | uses: earthly/actions-setup@v1 |
| 26 | with: |
| 27 | github-token: ${{ secrets.GITHUB_TOKEN }} |
| 28 | |
| 29 | - name: Build image |
| 30 | run: earthly --secret GITHUB_TOKEN +mkdocs-build |
| 31 | env: |
| 32 | EARTHLY_CI: true |
| 33 | EARTHLY_PUSH: "${{ github.event_name == 'push' }}" |
| 34 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |