Skip to content

add deploy preview

add deploy preview #13

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