blob: f76234cc1756c8479ffdcd9c1fd20fe9e282a268 [file] [log] [blame]
name: docs
on:
pull_request:
paths:
- 'docs/**'
push:
branches:
- main
paths:
- 'docs/**'
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Earthly
uses: earthly/actions-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
run: earthly --secret GITHUB_TOKEN +mkdocs-build
env:
EARTHLY_CI: true
EARTHLY_PUSH: "${{ github.event_name == 'push' }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}