Skip to content

Build and upload preview for PR 18 #68

Build and upload preview for PR 18

Build and upload preview for PR 18 #68

Workflow file for this run

name: 'Build Pull Request'
run-name: Build and upload preview for PR ${{ github.event.pull_request.number }}
on:
pull_request:
types: [synchronize, opened]
jobs:
build:
name: Build and upload site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.119.0"
- name: Build
run: hugo
- uses: matyrobbrt/cloudflare-pr-previews/upload@v1
name: Upload website
with:
build-dir: ./public/