blob: f76234cc1756c8479ffdcd9c1fd20fe9e282a268 [file] [log] [blame]
Mohammed Naser7f3eb562024-01-23 16:49:57 -05001name: docs
2
3on:
4 pull_request:
5 paths:
6 - 'docs/**'
7 push:
8 branches:
9 - main
10 paths:
11 - 'docs/**'
12
13permissions:
14 contents: write
15 pull-requests: write
16
17jobs:
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 }}