Skip to content

add deploy preview

add deploy preview #5

name: deploy-preview
on:
pull_request:
types:
- opened
- synchronize
- closed
jobs:
deploy-pr-preview:
if: github.repository == 'grafana/writers-toolkit'
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./deploy-preview
with:
source_directory: docs/sources
website_directory: content/docs/writers-toolkit
sha: ${{ github.event.pull_request.head.sha }}
branch: ${{ github.ref_name }}
event_number: ${{ github.event.number }}
repo: website